Syntax error when using Delimiters with Aurora Serverless MySQL 5.6
问题 I'm using Aurora Serverless MySQL 5.6 to create the following trigger which will update one table when data is inserted into another table but am receiving syntax errors, specifically around the Delimiter keyword. DELIMITER $$ CREATE TRIGGER Create_Media_Like_Trigger AFTER INSERT ON MediaLike FOR EACH ROW BEGIN IF NEW.likeType = 'LIKE' THEN UPDATE Media SET Media.numLikes = Media.numLikes + 1 WHERE Media.mediaId = NEW.mediaId; ELSEIF NEW.likeType = 'DISLIKE' THEN UPDATE Media SET Media