create table ot_data ( id number,
description clob )
Table created.
create index ot_data_idx on ot_data ( description )
indextype is CTXSYS.context
parameters ( 'SYNC ( on commit )' )
Index created.
insert into ot_data ( id, description ) values ( 1, 'This text will be indexed by Oracle Text.' )
1 row(s) inserted.
insert into ot_data ( id, description ) values ( 2, 'This example shows several queries that take advantage of Oracle Text.' )
1 row(s) inserted.
commit
Statement processed.
select * from ot_data where description like '%indexed%'
ID | DESCRIPTION |
---|---|
1 | This text will be indexed by Oracle Text. |
select * from ot_data where contains( description, 'indexed' ) > 0
ID | DESCRIPTION |
---|---|
1 | This text will be indexed by Oracle Text. |
select * from ot_data where description like '%query%'
no data found
select * from ot_data where contains( description, '$query' ) > 0
ID | DESCRIPTION |
---|---|
2 | This example shows several queries that take advantage of Oracle Text. |
select * from ot_data where description like '%This%'
ID | DESCRIPTION |
---|---|
1 | This text will be indexed by Oracle Text. |
2 | This example shows several queries that take advantage of Oracle Text. |
select * from ot_data where contains( description, 'This' ) > 0
no data found