如果直接寫
select * from user where id <> 217;mybatis就會報語法錯誤,<>特殊字符需要轉義
如下
select * from user where id <> 217;
使用Mybatis的時候,特殊字符需進行轉義,如
<> <>
& &
' '
"
https://jingyan.baidu.com/article/7c6fb428de049680642c90e6.html