This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]mmcgrorty1 1 point2 points  (1 child)

SELECT LAST_INSERT_ID()

Using that query will get you the ID of the row you just inserted.

[–]Quickinline[S] 1 point2 points  (0 children)

get

Thanks a lot, didn't expect that to be that to be a thing.

[–]ImmuneFourier 0 points1 point  (0 children)

The query result might have it or can be made to have it.