Answers for "trigger stock phpmyadmin output message"

SQL
0

trigger stock phpmyadmin output message

DELIMITER $$

CREATE TRIGGER testa_trig  
BEFORE INSERT ON testa 
FOR EACH ROW BEGIN
    IF (NEW.c > 100) THEN 
        SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Warning: c > 100!';
    END IF;
END$$

DELIMITER ;
Posted by: Guest on May-26-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language