Mysql数据进行并发锁定


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;

Published At
Categories with 数据库类
comments powered by Disqus