drop_temp_table.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. reset master;
  2. create database `drop-temp+table-test`;
  3. use `drop-temp+table-test`;
  4. create temporary table shortn1 (a int);
  5. create temporary table `table:name` (a int);
  6. create temporary table shortn2 (a int);
  7. select get_lock("a",10);
  8. get_lock("a",10)
  9. 1
  10. select get_lock("a",10);
  11. get_lock("a",10)
  12. 1
  13. show binlog events;
  14. Log_name Pos Event_type Server_id Orig_log_pos Info
  15. master-bin.000001 # Start 1 # Server ver: VERSION, Binlog ver: 3
  16. master-bin.000001 # Query 1 # create database `drop-temp+table-test`
  17. master-bin.000001 # Query 1 # use `drop-temp+table-test`; create temporary table shortn1 (a int)
  18. master-bin.000001 # Query 1 # use `drop-temp+table-test`; create temporary table `table:name` (a int)
  19. master-bin.000001 # Query 1 # use `drop-temp+table-test`; create temporary table shortn2 (a int)
  20. master-bin.000001 # Query 1 # use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `drop-temp+table-test`.`shortn2`,`drop-temp+table-test`.`table:name`,`drop-temp+table-test`.`shortn1`
  21. master-bin.000001 # Query 1 # use `drop-temp+table-test`; DO RELEASE_LOCK("a")
  22. drop database `drop-temp+table-test`;