Oracle-opsætning :
CREATE TABLE your_table ( strname ) AS
SELECT '''canada'',''tower''' FROM DUAL UNION ALL
SELECT '''south'',''africa''' FROM DUAL;
Forespørgsel :
SELECT *
FROM your_table
WHERE strname LIKE '%''' || lower( 'canada' ) || '''%'
Output :
STRNAME
----------------
'canada','tower'
Forespørgsel :
SELECT *
FROM your_table
WHERE strname LIKE '%''' || lower( 'south' ) || '''%'
AND strname LIKE '%''' || lower( 'africa' ) || '''%'
Output :
STRNAME
----------------
'south','africa'