如何在 MySql 中的所有表上暗示 WRITE 锁?我尝试了以下但它给出了错误。
FLUSH TABLES mytest.mytable1 WITH LOCK;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'WITH LOCK' at line 1
Run Code Online (Sandbox Code Playgroud) mysql ×1