密码有效期触发器
drop trigger if exists trigger_update_password_time;
delimiter $$
CREATE TRIGGER `trigger_update_password_time`
before update on `sys_user` for each row
BEGIN
if(new.password!=old.password) then
set new.update_password_time=NOW() ;
END IF;
END;
$$
最后
以上就是虚幻香氛最近收集整理的关于mysql在字段上添加触发器的全部内容,更多相关mysql在字段上添加触发器内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复