CREATE DEFINER=root@localhost TRIGGER abc AFTER UPDATE ON zqbp_custom
FOR EACH ROW begin
if new.status=0 then
update zqbp_user set user_pass=NEW.user_pass where user_name=NEW.user_name;
if new.status=1 then
update zqbp_user set user_pass=null where user_name=NEW.user_name;
end;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
end if 呢