如果直接写
select * from user where id <> 217;mybatis就会报语法错误,<>特殊字符需要转义
如下
select * from user where id <> 217;
使用Mybatis的时候,特殊字符需进行转义,如
<> <>
& &
' '
" "
版权声明:本文为lin252552原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
如果直接写
select * from user where id <> 217;mybatis就会报语法错误,<>特殊字符需要转义
如下
select * from user where id <> 217;
使用Mybatis的时候,特殊字符需进行转义,如
<> <>
& &
' '
" "