drop_temp_table.test

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· TEST 代码 · 共 32 行

TEST
32
字号
# Embedded server doesn't support binlog-- source include/not_embedded.inc--disable_warningsdrop database if exists `drop-temp+table-test`;--enable_warningsconnect (con1,localhost,root,,);connect (con2,localhost,root,,);connection con1;reset master;create database `drop-temp+table-test`;use `drop-temp+table-test`;create temporary table shortn1 (a int);create temporary table `table:name` (a int);create temporary table shortn2 (a int);select get_lock("a",10);disconnect con1;connection con2;# We want to SHOW BINLOG EVENTS, to know what was logged. But there is no# guarantee that logging of the terminated con1 has been done yet.# To be sure that logging has been done, we use a user lock.select get_lock("a",10);let $VERSION=`select version()`;--replace_result $VERSION VERSION--replace_column 2 # 5 #show binlog events;drop database `drop-temp+table-test`;# End of 4.1 tests

⌨️ 快捷键说明

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