show open tables where in_use > 0
コマンドはロックテーブルをクエリできます。
In_use is 1は、このテーブルが2人のユーザーによって同時に使用され、1人が使用中で、もう1人がロックされていることを意味します。
-- 为md_class表增加个写锁定
lock tables md_class write;
-- 查看锁表
show open tables where in_use > 0;
-- 表解锁
unlock tables;
ロックテーブルを確認し
ます。好きなものと同じです❤!