rpl000008.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 all other tables
  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 (n int);
  13. insert into foo values(5);
  14. drop table if exists bar;
  15. create table bar (m int);
  16. insert into bar values(15);
  17. drop table if exists choo;
  18. create table choo (k int);
  19. insert into choo values(55);
  20. save_master_pos;
  21. connection slave;
  22. sync_with_master;
  23. @r/rpl000008.result select foo.n,bar.m,choo.k from foo,bar,choo;
  24. connection master;
  25. drop table if exists foo,bar,choo;
  26. save_master_pos;
  27. connection slave;
  28. sync_with_master;
  29. drop table if exists foo,bar,choo;