ndb_single_user.result

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

RESULT
61
字号
use test;drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;create table t1 (a int key, b int unique, c int) engine ndb;ERROR HY000: Can't create table './test/t1.frm' (errno: 299)create table t1 (a int key, b int unique, c int) engine ndb;insert into t1 values (1,1,0),(2,2,0),(3,3,0),(4,4,0),(5,5,0),(6,6,0),(7,7,0),(8,8,0),(9,9,0),(10,10,0);create table t2 as select * from t1;select * from t1 where a = 1;a	b	c1	1	0select * from t1 where b = 4;a	b	c4	4	0select * from t1 where a > 4 order by a;a	b	c5	5	06	6	07	7	08	8	09	9	010	10	0update t1 set b=102 where a = 2;update t1 set b=103 where b = 3;update t1 set b=b+100;update t1 set b=b+100 where a > 7;delete from t1;insert into t1 select * from t2;create unique index new_index on t1 (b,c);drop table t1;ERROR 42S02: Unknown table 't1'create index new_index_fail on t1 (c);ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterinsert into t1 values (21,21,0),(22,22,0),(23,23,0),(24,24,0),(25,25,0),(26,26,0),(27,27,0),(28,28,0),(29,29,0),(210,210,0);ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterselect * from t1 where a = 1;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterselect * from t1 where b = 4;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterupdate t1 set b=102 where a = 2;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterupdate t1 set b=103 where b = 3;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterupdate t1 set b=b+100;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterupdate t1 set b=b+100 where a > 7;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterBEGIN;update t1 set b=b+100 where a=1;BEGIN;update t1 set b=b+100 where a=2;update t1 set b=b+100 where a=3;COMMIT;update t1 set b=b+100 where a=4;ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from ndbclusterCOMMIT;ERROR HY000: Got error 4350 'Transaction already aborted' from ndbclustercreate table t2 (a int) engine myisam;alter table t2 add column (b int);drop table t2;drop table t1;

⌨️ 快捷键说明

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