Mysql数据进行并发锁定

发表于:2007-07-02来源:作者:点击数: 标签:


mysql> LOCK TABLES real_table WRITE, insert_table WRITE;
mysql> insert into real_table select * from insert_table;
mysql> delete from insert_table;
mysql> UNLOCK TABLES;

原文转自:http://www.ltesting.net