Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

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

7 like 0 dislike
Hello
How do you find out which auto increment was assigned on the last insert?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by DBA-boss (120,990 points)

1 Answer

1 like 0 dislike
 
Best answer
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.
answered 1 year ago by eagles11 (179,830 points)

Related questions

5 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)
8 like 0 dislike
1 answer
4 like 0 dislike
1 answer
9 like 0 dislike
1 answer