Home » MYSQL » Using Sequences » Question
  1. The value of recently generated sequence number can be obtained by ____________.
    1. LATEST_INSERT_ID()
    2. INSERT_ID()
    3. LAST_INSERT_ID()
    4. INITIAL_INSERT_ID()
    5. None of these
Correct Option: C

The value of most recently generated sequence number can be obtained by calling the LAST_INSERT_ID() function. This enables to reference the AUTO_INCREMENT value in the subsequent statement.



Your comments will be displayed only after manual approval.