Re: Why isn't this working?
Assuming `index` is a column in the `lighting` table ...
CREATE TRIGGER lighting_schedule_ins
AFTER INSERT ON`lighting_schedule`
FOR EACH ROW
UPDATE lighting SET NEW.lastupdated=Now() WHERE index=1;
... (one statement, so delims aren't needed), but the logic looks fishy---there's no evident relationship between between the Insert and an``index` value of 1 in the other table.
Subject
Views
Written By
Posted
858
April 13, 2021 11:54AM
480
April 13, 2021 02:54PM
416
April 14, 2021 09:24AM
397
April 14, 2021 09:54AM
420
April 14, 2021 10:26AM
Re: Why isn't this working?
419
April 14, 2021 02:06PM
422
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.