Hi,
Is it possible to get the last_insert_id() in mysql at any time?, means without doing any insertion.
Thanks in advance
Mysql last_insert_id() - help
Moderator: General Moderators
-
thamizhchelvan
- Forum Newbie
- Posts: 23
- Joined: Tue May 08, 2007 2:50 am
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Mysql last_insert_id() - help
You can call the function, but you need to check the documentation to see what the return value is before any insert is done.
(#10850)