How can we look for an oracle-specific word...

Hello

Is there an Oracle function that seeks a specific word? I want to search only the words (no chain). Please see the example below.

text: "oracle forum is the best."
Word: "orum.
Result: There is no *.

If we use INSTR, he said that the word exists. But I want to search word "orum" not for the word containing "orum. So the result is "Word orum exists in the text.

Thank you.
SQL> SELECT  CASE
  2            WHEN REGEXP_LIKE('oracle forum is the best','(^|\W)orum(\W|$)') THEN 'Exists'
  3            ELSE 'Not exists'
  4          END RESULT
  5    FROM  DUAL
  6  /

RESULT
----------
Not exists

SQL> SELECT  CASE
  2            WHEN REGEXP_LIKE('oracle forum is the best','(^|\W)forum(\W|$)') THEN 'Exists'
  3            ELSE 'Not exists'
  4          END RESULT
  5    FROM  DUAL
  6  /

RESULT
----------
Exists

SQL> 

SY.

Tags: Database

Similar Questions

Maybe you are looking for