rpl_ndb_innodb_trans.result

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 104 行

RESULT
104
字号
stop slave;drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;reset master;reset slave;drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;start slave;create table t1 (a int, unique(a)) engine=ndbcluster;create table t2 (a int, unique(a)) engine=innodb;begin;insert into t1 values(1);insert into t2 values(1);rollback;select count(*) from t1;count(*)0select count(*) from t2;count(*)0select count(*) from t1;count(*)0select count(*) from t2;count(*)0begin;load data infile '../std_data_ln/rpl_loaddata.dat' into table t2;Warnings:Warning	1262	Row 1 was truncated; it contained more data than there were input columnsWarning	1262	Row 2 was truncated; it contained more data than there were input columnsload data infile '../std_data_ln/rpl_loaddata.dat' into table t1;Warnings:Warning	1262	Row 1 was truncated; it contained more data than there were input columnsWarning	1262	Row 2 was truncated; it contained more data than there were input columnsrollback;Warnings:Warning	1196	Some non-transactional changed tables couldn't be rolled backselect count(*) from t1;count(*)2select count(*) from t2;count(*)0select count(*) from t1;count(*)2select count(*) from t2;count(*)0delete from t1;delete from t2;begin;load data infile '../std_data_ln/rpl_loaddata.dat' into table t2;Warnings:Warning	1262	Row 1 was truncated; it contained more data than there were input columnsWarning	1262	Row 2 was truncated; it contained more data than there were input columnsload data infile '../std_data_ln/rpl_loaddata.dat' into table t1;Warnings:Warning	1262	Row 1 was truncated; it contained more data than there were input columnsWarning	1262	Row 2 was truncated; it contained more data than there were input columnsrollback;Warnings:Warning	1196	Some non-transactional changed tables couldn't be rolled backselect count(*) from t1;count(*)2select count(*) from t2;count(*)0select count(*) from t1;count(*)2select count(*) from t2;count(*)0delete from t1;delete from t2;begin;insert into t2 values(3),(4);insert into t1 values(3),(4);load data infile '../std_data_ln/rpl_loaddata.dat' into table t2;Warnings:Warning	1262	Row 1 was truncated; it contained more data than there were input columnsWarning	1262	Row 2 was truncated; it contained more data than there were input columnsload data infile '../std_data_ln/rpl_loaddata.dat' into table t1;Warnings:Warning	1262	Row 1 was truncated; it contained more data than there were input columnsWarning	1262	Row 2 was truncated; it contained more data than there were input columnsrollback;Warnings:Warning	1196	Some non-transactional changed tables couldn't be rolled backselect count(*) from t1;count(*)4select count(*) from t2;count(*)0select count(*) from t1;count(*)4select count(*) from t2;count(*)0drop table t1,t2;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?