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
1022
April 13, 2021 11:54AM
532
April 13, 2021 02:54PM
458
April 14, 2021 09:24AM
437
April 14, 2021 09:54AM
470
April 14, 2021 10:26AM
460
April 14, 2021 02:06PM
Re: Why isn't this working?
476
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.