轉載地址: https://blog.csdn.net/weixin_40797576/article/details/78796028
select
*
from
test
where
id<>1;
但是mybatis報錯 <> 應該轉義 <>
select
*
from
test
where
id <> 1;
使用mybatis的時候,特殊字符,例如<,>,<>,.....
需使用以下進行轉義
< <
> >
<> <>
& &
' '
" "