2004-02-16 09:03:25 +01:00
|
|
|
stop slave;
|
2004-01-29 19:22:29 +01:00
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
|
|
reset master;
|
|
|
|
reset slave;
|
|
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
2004-02-16 09:03:25 +01:00
|
|
|
start slave;
|
2004-01-29 19:22:29 +01:00
|
|
|
create table t1 (a int);
|
|
|
|
create table t2 (a int);
|
|
|
|
insert into t1 values (1);
|
|
|
|
insert into t2 values (1);
|
|
|
|
delete t1.* from t1, t2 where t1.a = t2.a;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
select * from t2;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
select * from t2;
|
|
|
|
a
|
|
|
|
1
|
2005-09-20 17:41:47 +02:00
|
|
|
delete from t1;
|
|
|
|
delete from t2;
|
|
|
|
insert into t1 values(1);
|
|
|
|
insert into t2 values(1);
|
|
|
|
DELETE t1.*, t2.* from t1, t2;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
select * from t2;
|
|
|
|
a
|
2004-01-29 19:22:29 +01:00
|
|
|
drop table t1,t2;
|