I have a trigger
DELIMITER $$
DROP TRIGGER IF EXISTS before_insert_on_emp $$
CREATE TRIGGER before_insert_on_emp
BEFORE insert ON empefforts
FOR EACH ROW BEGIN
DECLARE MSG VARCHAR(100);
IF (NEW.TIMING) > 60
THEN
SET MSG='Error: TIMING must be <=60.';
END IF;
END$$
DELIMITER ;
I want to show the MSG VARIABLE value on console when the condition is true. How can I show this value. I am using mysql 5.0.18 version...