<update id="updateReport" parameterClass="Report">
update Test
<dynamic prepend="set">
<isNotNull property="title" prepend=",">
title=#title#
</isNotNull>
</dynamic>
where id=#id#
</update>
其中,
在做update时,set必须作为prepend的参数。而不可以写在<dynamic 。。。>之上的sql语句里。