select * from test where id<>1;
但是mybatis报错 <> 应该转义 <>
select * from test where id <> 1;
使用mybatis的时候,特殊字符,例如<,>,<>,.....
需使用以下进行转义
< < > > <> <>& & ' '" "