2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
drop table if exists t1;
9
Note 1051 Unknown table 't1'
10
create table t1(a varchar(100),b int);
11
set @@session.sql_mode=pipes_as_concat;
12
insert into t1 values('My'||'SQL', 1);
13
set @@session.sql_mode=default;
14
insert into t1 values('1'||'2', 2);
15
select * from t1 where b<3 order by a;
19
select * from t1 where b<3 order by a;
23
set @@session.sql_mode=ignore_space;
24
insert into t1 values(password ('MySQL'), 3);
25
set @@session.sql_mode=ansi_quotes;
26
create table "t2" ("a" int);
28
set @@session.sql_mode=default;
29
create table t1(a int auto_increment primary key);
30
create table t2(b int, a int);
31
set @@session.sql_auto_is_null=1;
32
insert into t1 values(null);
33
insert into t2 select 1,a from t1 where a is null;
34
set @@session.sql_auto_is_null=0;
35
insert into t1 values(null);
36
insert into t2 select 2,a from t1 where a is null;
37
select * from t2 order by b;
40
select * from t2 order by b;
45
`id` int(11) NOT NULL auto_increment,
49
INSERT INTO t1(data) VALUES(SESSION_USER());
50
SELECT length(data) < 100 FROM t1;