mysql的check约束问题
时间:2021-07-01 10:21:17
帮助过:3人阅读
delimiter
//
mysql> CREATE TRIGGER trig_sd_check BEFORE
INSERT ON Customer
-> FOR EACH ROW
-> BEGIN
-> IF NEW.SD
<0 THEN
-> SET NEW.SD
=0;
-> END IF;
-> END
-> //
mysql> delimiter ;
http://stackoverflow.com/questions/2115497/check-constraint-in-mysql-is-not-working
mysql的check约束问题
标签: