MySQL Forums
Forum List  »  Triggers

Re: Why isn't this working?
Posted by: Peter Brawley
Date: April 13, 2021 02:54PM

Best to read about Triggers before trying to write one, eg an Update Trigger can't issue an Update on the table for which it's defined, it has to use SET syntax.

But why didn't you just default the timestamp column with ON UPDATE TIMESTAMP?



Edited 2 time(s). Last edit at 04/14/2021 09:41AM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
699
April 13, 2021 11:54AM
Re: Why isn't this working?
394
April 13, 2021 02:54PM
342
April 14, 2021 09:24AM
325
April 14, 2021 09:54AM
342
April 14, 2021 10:26AM
334
April 14, 2021 02:06PM
346
April 14, 2021 04:06PM


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.