在插入和更新数据之前分别获取当前系统时间来更新
CREATE TRIGGER `trg_recruitment_source_insert` BEFORE INSERT ON `t_recruitment_source` FOR EACH ROW set new.InsertTime=current_date
;; CREATE TRIGGER `trg_recruitment_source_update` BEFORE UPDATE ON `t_recruitment_source` FOR EACH ROW set new.UpdateTime=current_date在navicat中如下填写即可
版权声明:本文为博主原创文章,未经博主允许不得转载。