MyBatis中Like语句使用总结
oracle数据库:
SELECT
*
FROM
user
WHERE
name like CONCAT('%',#{name},'%')
或 :
SELECT
*
FROM
user
WHERE
name like '%'||#{name}||'%'
mysql数据库:
SELECT
*
FROM
user
WHERE
name like CONCAT('%',#{name},'%')