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 ;

mysql触发器,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!