MySQL Forums
Forum List  »  Newbie

How to obtain automatically generated id
Posted by: mysql
Date: August 29, 2004 12:26AM

I want to write a php script that creates a new row in a table with an auto increment field and then creates additional records in other tables where the automatically generated field has to be used.

Is there a way to get the automatically generated number as a result of an Insert query so that I can then use it in the next queries?

Thank you

Options: ReplyQuote

Written By
How to obtain automatically generated id
August 29, 2004 12:26AM

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.