-
When no AUTO_INCREMENT value has been generated during the current connection, LAST_INSERT_ID() returns ____________.
-
- 2
- 1
- 0
- -1
- None of these
Correct Option: C
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.