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
216
April 13, 2021 11:54AM
Re: Why isn't this working?
89
April 13, 2021 02:54PM
68
April 14, 2021 09:24AM
73
April 14, 2021 09:54AM
81
April 14, 2021 10:26AM
73
April 14, 2021 02:06PM
93
April 14, 2021 04:06PM


Sorry, only registered users may post in this forum.

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.