2002-08-30 20:32:59 +02:00
|
|
|
drop table if exists t1;
|
2001-09-28 07:05:54 +02:00
|
|
|
create table t1 (a char(10), tmsp timestamp);
|
|
|
|
insert into t1 set a = 1;
|
|
|
|
insert delayed into t1 set a = 2;
|
|
|
|
insert into t1 set a = 3, tmsp=NULL;
|
|
|
|
insert delayed into t1 set a = 4;
|
|
|
|
insert delayed into t1 set a = 5, tmsp = 19711006010203;
|
|
|
|
insert delayed into t1 (a, tmsp) values (6, 19711006010203);
|
|
|
|
insert delayed into t1 (a, tmsp) values (7, NULL);
|
|
|
|
insert into t1 set a = 8,tmsp=19711006010203;
|
|
|
|
select * from t1 where tmsp=0;
|
2000-12-28 02:56:38 +01:00
|
|
|
a tmsp
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1 where tmsp=19711006010203;
|
2000-12-28 02:56:38 +01:00
|
|
|
a tmsp
|
2002-12-14 16:43:01 +01:00
|
|
|
5 1971-10-06 01:02:03
|
|
|
|
6 1971-10-06 01:02:03
|
|
|
|
8 1971-10-06 01:02:03
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|
|
|
|
create table t1 (a int not null auto_increment primary key, b char(10));
|
|
|
|
insert delayed into t1 values (1,"b");
|
|
|
|
insert delayed into t1 values (null,"c");
|
|
|
|
insert delayed into t1 values (3,"d"),(null,"e");
|
|
|
|
insert delayed into t1 values (3,"this will give an","error");
|
2003-06-04 17:28:51 +02:00
|
|
|
ERROR 21S01: Column count doesn't match value count at row 1
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1;
|
2001-03-08 20:49:15 +01:00
|
|
|
a b
|
|
|
|
1 b
|
|
|
|
2 c
|
|
|
|
3 d
|
|
|
|
4 e
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|