MySQL Forums
Forum List  »  Triggers

Re: Why isn't this working?
Posted by: John Frank
Date: April 14, 2021 04:06PM

Awesome,

I haven't changed the names of the tables yet, but here was the final code

CREATE TRIGGER lighting_schedule_ins 
AFTER INSERT ON`Lighting Schedule` 
FOR EACH ROW 
UPDATE `Lighting` SET `Last Updated`=UNIX_TIMESTAMP() WHERE `Index`=1

Options: ReplyQuote


Subject
Views
Written By
Posted
191
April 13, 2021 11:54AM
80
April 13, 2021 02:54PM
64
April 14, 2021 09:24AM
66
April 14, 2021 09:54AM
75
April 14, 2021 10:26AM
66
April 14, 2021 02:06PM
Re: Why isn't this working?
81
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.