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
878
April 13, 2021 11:54AM
491
April 13, 2021 02:54PM
427
April 14, 2021 09:24AM
406
April 14, 2021 09:54AM
430
April 14, 2021 10:26AM
429
April 14, 2021 02:06PM
Re: Why isn't this working?
436
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.