[ 2014/03/05 11:25 | by 孤城浪子 ]
|
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 ;
[ 2014/03/05 11:25 | by 孤城浪子 ]
|