A

Admin • 830.13K Points
Coach

Q. What does LAST_INSERT_ID() return when no AUTO_INCREMENT value has been generated during the current connection?

  • (A) -1
  • (B) 0
  • (C) 1
  • (D) 2
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin
This question is about MySQL's `LAST_INSERT_ID()` function, which is very helpful when working with AUTO_INCREMENT columns. An AUTO_INCREMENT column automatically assigns a unique, increasing number to each new row you insert.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.