A

Admin • 833.24K Points
Coach

Q. When no AUTO_INCREMENT value has been generated during the current connection, LAST_INSERT_ID() returns . . . . . . . .

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

Explanation by: Admin

This question is about how MySQL keeps track of the last value generated by the AUTO_INCREMENT feature. AUTO_INCREMENT automatically assigns unique numbers to new rows in a table.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.