MySQL Forums
Forum List  »  Triggers

Re: Trigger to copy row before delete
Posted by: Peter Brawley
Date: May 03, 2014 09:16PM

To combine Insert...Select... with specific column arguments, you will need to forego Select * in favour of specific column arguments eg ...

insert into tblname (cola,colb,...)
select vala,valb,...,'now(),'delete' from othertbl;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trigger to copy row before delete
3125
May 03, 2014 09:16PM


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.