MySQL Forums
Forum List  »  Newbie

Re: use max(id) from table to insert in other table
Posted by: Phillip Ward
Date: May 15, 2018 09:02AM

Quote

Is there some way to get the last generated ids from table to insert in another table ?

Look at the LAST_INSERT_ID() function.

Regards, Phill W.

Options: ReplyQuote


Subject
Written By
Posted
Re: use max(id) from table to insert in other table
May 15, 2018 09:02AM


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.