mybatis不等于
第一种方法:用了转义字符把>和=CURRENT_DATE第二种方法:因为这个是xml格式的,所以不允许出现类似“>”这样的字符,但是都可以使用符号进行说明,将此类符号不进行解析你的可以写成这个:mapper文件示例代码[html]viewplaincopy
例: select * from 表 where username = 'tom' and id != 45
mybatis :
select * from 表 where
username = #{username} and id != #{id}