select * from sizetitle where #{size} is not null or #{size} <![CDATA[!= ]]> ''
size条件为size5的时候数据控查询应该为两条,在mybatis里为什么把所有的都查出来了。。
在数据控工具中查询结果为两条,给为大神帮帮忙
...全文
28631打赏收藏
mybatis里is not null用不了吗?
select * from sizetitle where #{size} is not null or #{size} '' size条件为size5的时候数据控查询应该为两条,在mybatis里为什么把所有的都查出来了。。 在数据控工具中查询结果为两条,给为大神帮帮忙