mysql触发器
时间:2014-05-08 10:36:30
收藏:0
阅读:306
查看所有触发器 show TRIGGERS
DELIMITER ;;
CREATE
TRIGGER `trigger1触发器名` BEFORE UPDATE ON `触发器所在表名` FOR EACH ROW insert into
templete (old) values (NEW.bz)
;;
DELIMITER
;
DELIMITER
;;
CREATE
TRIGGER `trigger1触发器名`
AFTER UPDATE ON `触发器所在表名`
FOR EACH ROW insert into templete (old) values (Old.bz)
;;
DELIMITER ;
评论(0)