1.

Which statement issues a lock on tables?(a) ISSUE LOCK(b) LOCK ISSUE(c) LOCK TABLES(d) ISSUE LOCKSI had been asked this question during an online exam.Question is from Scheduling and Locking Issues topic in section Query Optimization of MySQL

Answer»

Right choice is (c) LOCK TABLES

To explain I would say: LOCKS can be acquired and released explicitly by issuing LOCK TABLES and UNLOCK TABLES statements. Normally the server’s lock manager AUTOMATICALLY ACQUIRES locks as necessary and releases them when they no longer are NEEDED.



Discussion

No Comment Found

Related InterviewSolutions