MySQL Forums
Forum List  »  General

Re: mysql equivalent for Inserted table(sql server - used in triggers)
Posted by: Rick James
Date: July 29, 2014 06:33PM

I'm a bit lost in what you are doing.

2 temp tables sound like an overly complex design.

@temp is not the right syntax for a temp table. @temp refers to a "variable".

This syntax does the create and insert in one step:
CREATE TABLE foo SELECT ... FROM bar;

Inside TRIGGERs, use the "NEW." syntax to refer to the values being INSERTed.

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql equivalent for Inserted table(sql server - used in triggers)
July 29, 2014 06:33PM


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.