1
1
drop table if exists t1,t2;
2
create table t1(n int);
3
insert into t1 values (1);
5
update low_priority t1 set n = 4;
11
create table t1(n int);
12
insert into t1 values (1);
14
update low_priority t1 set n = 4;
20
create table t1 (a int, b int);
21
create table t2 (c int, d int);
22
insert into t1 values(1,1);
23
insert into t1 values(2,2);
24
insert into t2 values(1,2);
26
update t1,t2 set c=a where b=d;
33
create table t1 (a int);
34
create table t2 (a int);
35
lock table t1 write, t2 write;
36
insert t1 select * from t2;
38
ERROR 42S02: Table 'test.t2' doesn't exist
40
create table t1 (a int);
41
create table t2 (a int);
42
lock table t1 write, t2 write, t1 as t1_2 write, t2 as t2_2 write;
43
insert t1 select * from t2;
45
ERROR 42S02: Table 'test.t2' doesn't exist
48
create table t1(a int);
51
Field Type Null Key Default Extra
55
CREATE TABLE t1 (c1 int);
57
FLUSH TABLES WITH READ LOCK;
58
CREATE TABLE t2 (c1 int);
62
CREATE TABLE t1 (c1 int);
64
FLUSH TABLES WITH READ LOCK;
65
CREATE TABLE t2 AS SELECT * FROM t1;
66
ERROR HY000: Table 't2' was not locked with LOCK TABLES
2
70
CREATE DATABASE mysqltest_1;
3
71
FLUSH TABLES WITH READ LOCK;
4
72
DROP DATABASE mysqltest_1;
6
74
ERROR HY000: Can't execute the query because you have a conflicting read lock
8
76
DROP DATABASE mysqltest_1;
9
ERROR HY000: Can't drop schema 'mysqltest_1'; schema doesn't exist
77
ERROR HY000: Can't drop database 'mysqltest_1'; database doesn't exist
78
create table t1 (f1 int not null auto_increment, primary key(f1)) engine=innodb;
80
alter table t1 auto_increment=0;
81
alter table t1 auto_increment=0;
85
drop table if exists t1;
86
create table t1 (i int);
90
flush tables with read lock;;
92
alter table t1 add column j int;
94
insert into t1 values (1,2);;
105
drop table if exists t1;
106
create table t1 (i int);
108
lock tables t1 write;
110
flush tables with read lock;;
115
drop table if exists t1,t2;
116
create table t1 (a int);
119
insert into t1 values(1);
122
select @tlwa < @tlwb;
126
drop table if exists t1;
127
create table t1 (i int);
129
lock tables t1 write;
131
flush tables with read lock;;