Update trigger problem.
Posted by:
Ken Ekholm
Date: April 10, 2025 05:18AM
I have problem to create a trigger in MySQL.
What I want to do, is only when table settings's column delay is changed
it would trigger a insert to table delaylog.
I have tried with this code but it doesn't work.
CREATE TRIGGER delaylog
AFTER UPDATE ON settings FOR EACH ROW
BEGIN
IF UPDATE(delay) THEN
insert into delaylog(delayvalue) select delay from settings where id=1;
END IF;
END;
Can someone help me?
Subject
Written By
Posted
Update trigger problem.
April 10, 2025 05:18AM
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.