mysql> create table t_cosler( -> f_PY char primary key, -> cBegin SMALLINT UNSIGNED not null, -> cEnd SMALLINT UNSIGNED not null ->...
分类:
数据库 时间:
2014-10-13 23:07:17
阅读次数:
337
3.3 Data Member的存取1. 不管什么情况,每一个static data member只有一个实体,放在程序的data segment之中,每次程序取用static member,不管是通过operator::还是member selection operator,都会被内部转化为对该唯...
分类:
编程语言 时间:
2014-10-12 13:52:47
阅读次数:
308
淘宝网API地址: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=15850781443参数:tel:手机号码返回:JSON拍拍API地址: http://virtual.paipai.com/extinfo/GetMobilePr...
分类:
移动开发 时间:
2014-10-11 23:49:37
阅读次数:
285
create table myTable1(id int primary key identity,col1 int,col2 int)DECLARE @i int;set @i=0;WHILE @i1 --找到重复的记录(col2和col1全部是一样的才是重复),并删掉重复记录 DELETE fr...
分类:
其他好文 时间:
2014-10-10 19:13:24
阅读次数:
139
一、行转列
需要将如下格式
转换为:
这就是最常见的行转列,主要原理是利用decode函数、聚集函数(sum),结合group by分组实现的
[sql]
view plaincopy
create table test( id varchar2(255) primary key not null, name var...
分类:
数据库 时间:
2014-10-09 18:18:47
阅读次数:
269
首先在mysql中创建两个表如下:mysql> create table user( id int,name varchar(8) , primary key(id));Query OK, 0 rows affected (0.01 sec)mysql> create table addr(id i...
分类:
数据库 时间:
2014-10-09 13:56:53
阅读次数:
246
1.分别模拟insert,update和delete造成阻塞的示例,并对v$lock中的相应的信息进行说明,给 出SQL演示。Insert示例会话1:SQL> select * from t1;ID1234SQL> alter table t1 add primary key(id);表已更改。SQ...
分类:
数据库 时间:
2014-10-08 00:37:54
阅读次数:
445
转载地址:http://www.cnblogs.com/dennisOne?模块化程序设计模块化程序设计汇编语言通过call和ret指令实现了模块化程序设计。可以实现多个相互联系、功能独立的子程序来解决一个复杂的问题。子程序的框架 1 assume cs:code 2 code segment 3 ...
分类:
编程语言 时间:
2014-10-07 13:18:53
阅读次数:
228
1、 PRIMARY KEY也可以只指定为KEY。这么做的目的是与其它数据库系统兼容、二来key 是index的同意词!2、 在UNIQUE索引中,所有的值必须互不相同。如果您在添加新行时使用的关键字与原有行的关键字相同,则会出现错误。 例外情况是,如果索引中的一个列允许包含NULL值,则此列可以包...
分类:
数据库 时间:
2014-10-07 00:13:52
阅读次数:
229
1、 auto_increment: innoDB 中 表中只可以有一个列是auto_increment的,这个列还一定要是索引。 create table T(X int auto_increment primary key,Y int); -- 对 c...
分类:
数据库 时间:
2014-10-06 22:06:50
阅读次数:
206