flush.result

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

RESULT
58
字号
drop table if exists t1,t2;drop database if exists mysqltest;create temporary table t1(n int not null primary key);create table t2(n int);insert into t2 values(3);select * from t1;n3flush tables with read lock;drop table t2;ERROR HY000: Can't execute the query because you have a conflicting read lockdrop table t2;unlock tables;create database mysqltest;create table mysqltest.t1(n int);insert into mysqltest.t1 values (23);flush tables with read lock;drop database mysqltest;select * from mysqltest.t1;n23unlock tables;create table t1 (n int);flush tables with read lock;insert into t1 values (345);select * from t1;n345drop table t1;create table t1 (c1 int);lock table t1 write;flush tables with read lock;ERROR HY000: Can't execute the given command because you have active locked tables or an active transactionlock table t1 read;flush tables with read lock;lock table t1 write;ERROR HY000: Can't execute the query because you have a conflicting read locklock table t1 read;lock table t1 write;ERROR HY000: Can't execute the query because you have a conflicting read lockunlock tables;create table t2 (c1 int);create table t3 (c1 int);lock table t1 read, t2 read, t3 write;flush tables with read lock;ERROR HY000: Can't execute the given command because you have active locked tables or an active transactionlock table t1 read, t2 read, t3 read;flush tables with read lock;unlock tables;drop table t1, t2, t3;create table t1 (c1 int);create table t2 (c1 int);lock table t1 write;flush tables with read lock;insert into t2 values(1);unlock tables;drop table t1, t2;

⌨️ 快捷键说明

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