20
20
insert into t1 values (0,"r1manic");
21
21
insert into t1 values (0,"r1man");
23
create table t1 (a int not null auto_increment, primary key (a), t timestamp, c char(10) default "hello", i int);
24
insert into t1 values (default,default,default,default), (default,default,default,default), (4,0,"a",5),(default,default,default,default);
25
select a,t>0,c,i from t1;
23
create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);
24
insert into t1 values (default,default,default,default);
25
insert into t1 values (default,default,default,default);
26
insert into t1 values (4,0,"a",5);
27
ERROR HY000: Received an invalid value '0' for a UNIX timestamp.
28
insert into t1 values (default,default,default,default);
29
select a,t is not null,c,i from t1;
32
35
insert into t1 set a=default,t=default,c=default;
33
36
insert into t1 set a=default,t=default,c=default,i=default;
34
insert into t1 set a=4,t=0,c="a",i=5;
35
insert into t1 set a=5,t=0,c="a",i=null;
37
insert into t1 set a=4,t= NULL,c="a",i=5;
38
insert into t1 set a=5,t= NULL,c="a",i=null;
36
39
insert into t1 set a=default,t=default,c=default,i=default;
37
select a,t>0,c,i from t1;
40
select a,t is not null,c,i from t1;
45
48
create table t1 (id int NOT NULL DEFAULT 8);
46
49
insert into t1 values(NULL);