mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
22 lines
381 B
Text
22 lines
381 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
create table t1 (a int primary key);
|
|
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
|
|
connection slave;
|
|
select * from t1;
|
|
a
|
|
select * from t2;
|
|
a
|
|
1
|
|
connection master;
|
|
drop table t1,t2;
|
|
connection slave;
|
|
include/rpl_end.inc
|