2003-03-04 12:22:35 +02:00
|
|
|
drop table if exists t1,t2;
|
2001-10-08 07:24:04 +03:00
|
|
|
create table t1(n int);
|
|
|
|
insert into t1 values (1);
|
|
|
|
lock tables t1 write;
|
|
|
|
update low_priority t1 set n = 4;
|
|
|
|
select n from t1;
|
|
|
|
unlock tables;
|
2001-10-08 04:58:07 +03:00
|
|
|
n
|
|
|
|
4
|
2001-10-08 07:24:04 +03:00
|
|
|
drop table t1;
|
|
|
|
create table t1(n int);
|
|
|
|
insert into t1 values (1);
|
|
|
|
lock tables t1 read;
|
|
|
|
update low_priority t1 set n = 4;
|
|
|
|
select n from t1;
|
|
|
|
unlock tables;
|
2001-10-08 04:58:07 +03:00
|
|
|
n
|
|
|
|
1
|
2001-10-08 07:24:04 +03:00
|
|
|
drop table t1;
|
2003-03-04 12:22:35 +02:00
|
|
|
create table t1 (a int);
|
|
|
|
create table t2 (a int);
|
|
|
|
lock table t1 write, t2 write;
|
|
|
|
insert t1 select * from t2;
|
|
|
|
drop table t2;
|
2003-06-04 18:28:51 +03:00
|
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
2003-03-04 12:22:35 +02:00
|
|
|
drop table t1;
|