DROP TRIGGER /*!50032 IF EXISTS */ `t_afterinsert_on_tt`$$CREATE
    TRIGGER `t_afterinsert_on_tt` BEFORE INSERT ON `tt` 
    FOR EACH ROW BEGIN
 DECLARE _type VARCHAR(2); 
 IF new.reply_id="477785" THEN SET @_type="9"
 END IF;
    END;
$$这样为什么不行。提示错误:
错误码: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END IF;
    END' at line 7