I'm trying to write an SQL (MySQL) Statement here using an if statement but all am getting are countless errors. I've narrowed down to simple instructions but still no breakthrough.
DELIMITER //
CREATE TRIGGER confirmation_triggers AFTER INSERT ON `old_deliquencies`
FOR EACH ROW
IF new.status='True' THEN INSERT INTO `notifications` VALUES(NULL, new.loan_id, "Notification here", curdate());
END IF;
end;
DELIMITER //
The error i get is that i have an error near INSERT INTO...
Can someone help...