java - mysql的这个update触发器哪里错了?
阿神
阿神 2017-04-17 15:49:23
0
1
806

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;

阿神
阿神

闭关修行中......

reply all(1)
伊谢尔伦

end if

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!