MySQL 加锁命令:
lock tables [tablename] read;
读加锁
lock tables [tablename] write;
解锁
unlock tables;
不需要指定某一个table名
版权声明:本文为博主原创文章,未经博主允许不得转载。