Hi, I'm trying to make a trigger with a simple update.
delimiter //
CREATE TRIGGER 'reCalibrados' AFTER INSERT ON 'calibrationtbl'
FOR EACH ROW
BEGIN
UPDATE calibrationtbl SET state='1' WHERE idInteva=
(SELECT idInteva FROM calibrationcertificatestbl WHERE
Month(nextCalDate)= Month(NOW()) AND Year(nextCalDate)= YEAR(NOW()));
END;//
delimiter ;
I get this error:
Unrecognized statement type (near end);
Can you help me?