<update id="updateTestInfo" parameterType=""> update TEST_INFO <set> <if test="age!= null and age!= ''"> AGE=#{age} </if> </set> where ID=#{Id} </update>
若是传的age=0,数据将不会执行update,报数据库更新失败,由于Oracle好像默认0为' '.java