1.

What is the command to disable autocommit and launch a transaction?(a) INITIATE TRANSACTION(b) START TRANSACTION(c) DISABLE AUTOCOMMIT(d) TRANSACTIONI had been asked this question at a job interview.The above asked question is from Performing Transactions topic in section Using SQL to Manage Data of MySQL

Answer»

The CORRECT option is (b) START TRANSACTION

To explain I would say: By default, MySQL runs in the AUTOCOMMIT mode. This means that the changes performed by individual statements or operations on tables are automatically COMMITTED to the database IMMEDIATELY.



Discussion

No Comment Found

Related InterviewSolutions