摘要:
trim标记是一个格式化的标记,可以完成set或者是where标记的功能,如下代码: 1、 select * from user <trim prefix="WHERE" prefixoverride="AND |OR"> <if test="name != null and name.length 阅读全文
摘要:
set标记是mybatis提供的一个智能标记,我一般将其用在修改的sql中,例如以下情况: <update> update user <set> <if test="name != null and name.length()>0">name = #{name},</if> <if test="ge 阅读全文