1
create table t1 (a int not null, b int, primary key (a));
2
insert into t1 values (1,1);
3
create table if not exists t1 select 2;
4
ERROR HY000: Field 'a' doesn't have a default value
9
create table t1 select 1,2,3;
10
create table if not exists t1 select 1,2;
11
ERROR HY000: Field '1' doesn't have a default value
12
create table if not exists t1 select 1;
13
ERROR HY000: Field '1' doesn't have a default value
18
create table t1 (a int not null primary key auto_increment, b int, c int, d int);
19
create table if not exists t1 select 1,2;
21
Note 1050 Table 't1' already exists