Mybatis的sql语句中需要用到’>’或者'<‘时,不能直接使用。
< < 小于号
> > 大于号
& & 和
' ' 单引号
" '' 双引号
例如查询汽车价格小于一万元的语句
select * from car where car_price_new <
另外,使用like语句
查询订单中name的like语句
select * from orderEntity where order_name like CONCAT('%-',#{value},'-%')