rpl000007.test
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. #this one assumes we are ignoring updates on table foo, but doing
  2. #the ones on bar
  3. source include/master-slave.inc;
  4. connection slave;
  5. use test;
  6. drop table if exists foo;
  7. create table foo (n int);
  8. insert into foo values(4);
  9. connection master;
  10. use test;
  11. drop table if exists foo;
  12. create table foo (s char(20));
  13. load data infile '../../std_data/words.dat' into table foo;
  14. insert into foo values('five');
  15. drop table if exists bar;
  16. create table bar (m int);
  17. insert into bar values(15);
  18. save_master_pos;
  19. connection slave;
  20. sync_with_master;
  21. @r/rpl000007.result select foo.n,bar.m from foo,bar;
  22. connection master;
  23. drop table if exists bar,foo;
  24. save_master_pos;
  25. connection slave;
  26. sync_with_master;