执行下列查询,其中Password 为要锁定的列

DELIMITER ;;
drop trigger if exists foo_upd;;
CREATE TRIGGER foo_upd BEFORE  UPDATE ON 表名 FOR EACH ROW
begin 
IF OLD.Password != NEW.Password THEN
set NEW.Password=OLD.Password ;
END IF;
END;;
DELIMITER ;

网络 | 评论(0) | 引用(0) | 阅读(2245)
 
发表评论
   
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]