MySQL Forums
Forum List  »  PHP

Re: How to insert record to a table and simultaneously update the bridge table?
Posted by: Rich Wood
Date: January 18, 2014 06:59PM

Thank you Peter. I apologize for not clarifying in advance my understanding of the general rules that govern the usage of table c but am thankful for your answer.

Additionally, however, in order to maintain the updating of table c do I simply complete the insert on the events table (the registrant Id is already confirmed for the event to insert the new record) and upon a successful insert, retrieve the new autoincremented ID and THEN perform an additional insert to table c?

I assumed that was the method but wasn't sure if it was that "manual" or if I should use a stored procedure/trigger

Thanks again!
Rich

Options: ReplyQuote




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.