Mybatis中sql语句不等于的表示
时间:2020-11-21 12:07:00
收藏:0
阅读:13
如果直接写
select * from user where id <> 217;mybatis就会报语法错误,<>特殊字符需要转义
如下
select * from user where id <> 217;
使用Mybatis的时候,特殊字符需进行转义,如
<> <>
& &
' ‘
"
评论(0)