Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
标题几乎说明了这一点。
IF NEW.variance <> 0 THEN (kill update) END IF
这可能吗?
查看手册(http://dev.mysql.com/doc/refman/5.5/en/signal.html)SIGNAL声明就是你要找的。
SIGNAL
IF NEW.variance <> 0 THEN SIGNAL error SET MESSAGE_TEXT='Variance is not 0.'; END IF