1
by brian
clean slate |
1 |
stop slave;
|
2 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
3 |
reset master;
|
|
4 |
reset slave;
|
|
5 |
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
6 |
start slave;
|
|
7 |
create table t1 (a int primary key);
|
|
8 |
create table t2 (a int);
|
|
9 |
insert into t1 values (1);
|
|
10 |
insert into t2 values (1);
|
|
11 |
delete t1.* from t1, t2 where t1.a = t2.a;
|
|
12 |
select * from t1;
|
|
13 |
a
|
|
14 |
select * from t2;
|
|
15 |
a
|
|
16 |
1
|
|
17 |
select * from t1;
|
|
18 |
a
|
|
19 |
select * from t2;
|
|
20 |
a
|
|
21 |
1
|
|
22 |
drop table t1,t2;
|