Mysql数据进行并发锁定_MySQL
程序员文章站
2022-05-23 22:33:19
...
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;
mysql> insert into real_table select * from insert_table;
mysql> delete from insert_table;
mysql> UNLOCK TABLES;
上一篇: Oracle完整数据库实例迁移