UPDATE test
name = #{name},
phone = #{phone},
address = #{address},
WHERE
id = #{id}
输出sql
输出sql
select * from user WHERE user_id != #{userId} and phone = #{phone} and state!=‘X‘