📄 ndb_binlog_multi.result
字号:
drop table if exists t1,t2;drop table if exists t1,t2;SHOW TABLES;Tables_in_testCREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB;show tables;Tables_in_testt2INSERT INTO t2 VALUES (1,1),(2,2);select * from t2 order by a;a b1 12 2SELECT @the_epoch:=epoch,inserts,updates,deletes,schemaops FROM cluster_replication.binlog_index ORDER BY epoch DESC LIMIT 1;@the_epoch:=epoch inserts updates deletes schemaops<the_epoch> 2 0 0 0SELECT * FROM t2 ORDER BY a;a b1 12 2SELECT inserts,updates,deletes,schemaops FROM cluster_replication.binlog_index WHERE epoch=<the_epoch>;inserts updates deletes schemaops2 0 0 0DROP TABLE t2;CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB;INSERT INTO t1 VALUES (1),(2);SELECT @the_epoch2:=epoch,inserts,updates,deletes,schemaops FROM cluster_replication.binlog_index ORDER BY epoch DESC LIMIT 1;@the_epoch2:=epoch inserts updates deletes schemaops<the_epoch2> 2 0 0 0SELECT inserts,updates,deletes,schemaops FROMcluster_replication.binlog_index WHERE epoch > <the_epoch> AND epoch < <the_epoch2>;inserts updates deletes schemaops0 0 0 1drop table t1;SHOW TABLES;Tables_in_testSELECT inserts,updates,deletes,schemaops FROMcluster_replication.binlog_index WHERE epoch > <the_epoch> AND epoch < <the_epoch2>;inserts updates deletes schemaops0 0 0 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -