1.

The ‘LAST_INSERT_ID()’ is tied only to the ‘AUTO_INCREMENT’ values generated during the current connection to the server.(a) True(b) FalseI have been asked this question in an interview for internship.Question is taken from Working with Sequences in division Data Types of MySQL

Answer»

The CORRECT CHOICE is (a) True

Easiest EXPLANATION: The ‘LAST_INSERT_ID()’ is tied only to AUTO_INCREMENT values that are GENERATED during the current CONNECTION to the server. It is not affected by AUTO_INCREMENT tied with the other clients.



Discussion

No Comment Found

Related InterviewSolutions