输入banner图图片脚本导航/分类

mysql 触发器

TRIGGER IF EXISTS table1_trigger;
创建触发器(举例 当table1的INSERT发生时触发)
CREATE TRIGGER `table1_trigger` AFTER INSERT ON `table1` FOR EACH ROW
BEGIN
    INSERT INTO table2
VALUES
    (
        new.ID,
        new.STATUS,
        new.TIME,
    );
END;

 

mysql 触发器

标签:span   for   time   exists   insert   new   举例   code   rop