Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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 ;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #trigger #stock #phpmyadmin #output #message
ADD COMMENT
Topic
Name
3+3 =