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
699
April 13, 2021 11:54AM
394
April 13, 2021 02:54PM
Re: Why isn't this working?
341
April 14, 2021 09:24AM
325
April 14, 2021 09:54AM
341
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.