Oracle
 sql >> Datenbank >  >> RDS >> Oracle

Oracle-Zustandsprüfung

Oracle-Setup :

CREATE TABLE your_table ( strname ) AS 
  SELECT '''canada'',''tower''' FROM DUAL UNION ALL
  SELECT '''south'',''africa''' FROM DUAL;

Abfrage :

SELECT *
FROM   your_table
WHERE  strname LIKE '%''' || lower( 'canada' ) || '''%'

Ausgabe :

STRNAME
----------------
'canada','tower'

Abfrage :

SELECT *
FROM   your_table
WHERE  strname LIKE '%''' || lower( 'south' ) || '''%'
AND    strname LIKE '%''' || lower( 'africa' ) || '''%'

Ausgabe :

STRNAME
----------------
'south','africa'