Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以为会话锁定 MySQL 上的单个表,并且仍然能够在锁定该表的同一会话上读取和写入其他未锁定的表,而该表仍处于锁定状态?
是的,LOCK TABLES正是这样做的。
LOCK TABLES