oracle數據庫:
mysql
SELECT 數據庫
* oracle
FROM spa
user im
WHERE 數據
name like CONCAT('%',#{name},'%') img
或
SELECT
*
FROM
user
WHERE
name like '%'||#{name}||'%'
SQLServer數據庫:
SELECT
*
FROM
user
WHERE
name like '%'+#{name}+'%'
mysql數據庫:
SELECT
*
FROM
user
WHERE
name like CONCAT('%',#{name},'%')
DB2數據庫:
SELECT
*
FROM
user
WHERE
name like CONCAT('%',#{name},'%')
或
SELECT
*
FROM
user
WHERE
name like '%'||#{name}||'%'