Home » MYSQL » MySQL Access Control and Security » Question
  1. How can the value of recently generated sequence number be obtained?
    1. INITIAL_INSERT_ID()
    2. INSERT_ID()
    3. LAST_INSERT_ID()
    4. LATEST_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.