title: how to show a message if condition is true in mysql 5.0 trigger?
body: <p>I have a trigger </p>
  
  <pre><code> 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) &gt; 60
    THEN
      SET MSG='Error: TIMING must be &lt;=60.';
    END IF;
   END$$
  DELIMITER ;
  </code></pre>
  
  <p>I want  to show the MSG VARIABLE value on console when the condition is true.
  How can I show this value. I am using <strong>mysql 5.0.18</strong> version...</p>