CRUD增删改查DCL数据控制语言:备份,grantDML数据操作语言:CRUDDDL数据定义语言:createdropalter自增长列不能赋值增:Insertinto表名values(‘’,’’,’’,’’,’’)--into可以省略删:Deletefrom表名(有日志)(慢)truncatet...
分类:
数据库 时间:
2014-09-04 23:37:00
阅读次数:
448
DDL(数据定义语言) Create、Drop、AlterDML(数据操纵语言) CRUD(增加(Create)、读取(Retrieve)(重新得到数据)、更新(Update)和删除(Delete))DCL(数据控制语言)增加数据 insert into 表 values ('值') --i...
分类:
其他好文 时间:
2014-09-04 23:30:40
阅读次数:
241
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-09-04 18:52:29
阅读次数:
181
drop table t1;
create table t1 (c1 char(2) primary key, c2 char(1) not null);
insert into t1 values ('A ','A');
select t1.c1 from t1
where t1.c1 in (select c2 from t1 union all select '0'||c2 c2 fr...
分类:
数据库 时间:
2014-09-04 16:58:39
阅读次数:
245
1.只新建用户的操作mysql -u root -p密码mysql> insert into mysql.user(Host,User,Password) values(‘localhost’,'czc’,password('root'));mysql>flush privileges;mysql>...
分类:
数据库 时间:
2014-09-04 16:24:39
阅读次数:
278
create table tb(姓名 varchar(10),课程 varchar(10),分数 int)insert into tb values('张三','语文',74)insert into tb values('张三','数学',83)insert into tb values('张三',...
分类:
数据库 时间:
2014-09-04 16:16:39
阅读次数:
318
在res目录下建立不同名称的values文件来调用不同的语言包
Values文件汇总如下:
中文(中国):values-zh-rCN中文(台湾):values-zh-rTW
中文(香港):values-zh-rHK
英语(美国):values-en-rUS
英语(英国):values-en-rGB
英文(澳大利亚):values-en-rAU
英文(加拿大):values-en-rC...
分类:
移动开发 时间:
2014-09-04 14:59:49
阅读次数:
199
题目地址:UVa 1152
先枚举A集合与B集合的和,存起来,然后再枚举C集合与D集合的和,看与存起来的值有多少个是互为相反数的。水题。找存起来的值时可以用二分找。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2014-09-03 21:22:17
阅读次数:
324
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:
其他好文 时间:
2014-09-03 21:13:57
阅读次数:
142
http://www.gamedev.net/topic/578866-d3d10-how-to-increase-maxcount-of-sv_clipdistance/ The D3D#_CLIP_OR_CULL_DISTANCE_* values are #defines in the d3d...
分类:
其他好文 时间:
2014-09-03 14:56:56
阅读次数:
175