📄 flush_block_commit.result
字号:
drop table if exists t1;create table t1 (a int) engine=innodb;begin;insert into t1 values(1);flush tables with read lock;select * from t1;a commit;select * from t1;aunlock tables;begin;select * from t1 for update;a1begin; select * from t1 for update; flush tables with read lock;commit;a1unlock tables;commit;begin;insert into t1 values(10);flush tables with read lock;commit;unlock tables;flush tables with read lock;unlock tables;begin;select * from t1;a110show create database test;Database Create Databasetest CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */drop table t1;create table t1 (a int) engine=innodb;reset master;set autocommit=0;insert t1 values (1);flush tables with read lock;show master status;File Position Binlog_Do_DB Binlog_Ignore_DBmaster-bin.000001 98 commit;show master status;File Position Binlog_Do_DB Binlog_Ignore_DBmaster-bin.000001 98 unlock tables;drop table t1;set autocommit=1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -