How do you find out which auto increment was assigned on the last insert

Untitled Forums Assignment Help How do you find out which auto increment was assigned on the last insert

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7167
    Aakanksha
    Participant

    How do you find out which auto increment was assigned on the last insert?

    #11859
    Aakanksha
    Participant

    SELECT last_insert_id() will return the last value assigned by the auto_increment function. Note that you don’t have to specify the table name.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.