MySQL Forums
Forum List  »  Triggers

Re: Why isn't this working?
Posted by: John Frank
Date: April 14, 2021 09:24AM

Peter Brawley Wrote:
-------------------------------------------------------
> 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 define, it has to use SET
> syntax.
>
> But why didn't you just default the timestamp
> column with ON UPDATE TIMESTAMP?

That's not what I asked to do. I asked to change a field in the table `Lighting` when changes are made on a completely different table `Lighting Schedule`, so using a default value on the ladder table won't help me here.

Options: ReplyQuote


Subject
Views
Written By
Posted
154
April 13, 2021 11:54AM
55
April 13, 2021 02:54PM
Re: Why isn't this working?
39
April 14, 2021 09:24AM
43
April 14, 2021 09:54AM
51
April 14, 2021 10:26AM
49
April 14, 2021 02:06PM
59
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.