-
What does LAST_INSERT_ID() return when no AUTO_INCREMENT value has been generated during the current connection?
-
- 2
- 1
- 0
- -1
- None of these
Correct Option: D
The ‘LAST_INSERT_ID()’ function returns zero when no ‘AUTO_INCREMENT’ value has been generated during the current connection with the server. It is tied to the current connection.