Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Search exact word in a sentence without using CONTAINS operator

OraDev16Jul 20 2022 — edited Jul 20 2022

Hi All,
I've the following table with five records and I want to search the exact term 'auto' expecting two records to be returned (2, 5 and 6). Is it possible with like operator, instr function or regular expression. I can't use CONTAINS operator (Oracle Text Search) due to some development restrictions.
create table test(
id number,
name varchar2(100));

insert into test values(1,'automation increase efficiency');
insert into test values(2,'Auto');
insert into test values(3,'this record does not contain the search term');
insert into test values(4,'this is an automatic reply');
insert into test values(5,'Auto Renewal');
insert into test values(6,'Turn off auto tune');

Thank you.

This post has been answered by Frank Kulash on Jul 20 2022
Jump to Answer
Comments
Post Details
Added on Jul 20 2022
4 comments
298 views