Oracle中:(不支持concat的三个参数的拼接)
select * from 表名 where 字段名 like concat(concat('%',#{字段名}),'%')
或者
select * from 表名 where 字段名 like '%' || #{字段名} || '%'
MyBatis中:(支持concat的三个参数的拼接)
select * from 表名 where 字段名 like concat( '%’', '#{字段名}', '%' )
Oracle中:(不支持concat的三个参数的拼接)
或者
MyBatis中:(支持concat的三个参数的拼接)