MySQL Forums
Forum List  »  InnoDB

Re: Create a row, use id as value in another row?
Posted by: Don Ireland
Date: December 22, 2015 08:52PM

After pondering this some more, this sounds like a job for a function. I can pass the field names and values to the functions and have it return the id value.

That function can be used to provide the id value to use as parentID in the "main" insert.

Don

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Create a row, use id as value in another row?
750
December 22, 2015 08:52PM


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.