Su activador debe ser "antes de insertar", y debe usar SET
en lugar de UPDATE
:
CREATE TRIGGER task_creation_timestamp BEFORE INSERT ON tasks
FOR EACH ROW
SET NEW.created = NOW();
Su activador debe ser "antes de insertar", y debe usar SET
en lugar de UPDATE
:
CREATE TRIGGER task_creation_timestamp BEFORE INSERT ON tasks
FOR EACH ROW
SET NEW.created = NOW();