MySQL Forums
Forum List  »  Newbie

Re: How to obtain automatically generated id
Posted by: Ramalingam Chelliah
Date: August 31, 2004 03:25AM

I think last_insert_id() is sufficent if you like to add extra records for
the recently inserted data....last_insert_id() is client specific ...

So You can use your last_insert_id for processing other tables..
Instead of MAX() which may change if others change the table contents...


We Learn the Most When we have to Invent

Options: ReplyQuote

Written By
Re: How to obtain automatically generated id
August 31, 2004 03:25AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.