Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle Text, wildcards AND escape characters help
Hi, you should be using () and not {}, at least for the specific
requirements stated so far.
Example script below.
Regards
TESSELLA Michael.OShea_at_tessella.com
__/__/__/ Tessella Support Services plc
__/__/__/ 3 Vineyard Chambers, ABINGDON, OX14 3PX, England
__/__/__/ Tel: (44)(0)1235-555511 Fax: (44)(0)1235-553301
www.tessella.com Registered in England No. 1466429
SQL>
SQL> CREATE TABLE tblTest(id NUMBER,testContent VARCHAR2(50));
Table created.
SQL> INSERT INTO tblTest(id,testContent) VALUES (1,'agents');
1 row created.
SQL> INSERT INTO tblTest(id,testContent) VALUES (2,'agent');
1 row created.
SQL> INSERT INTO tblTest(id,testContent) VALUES (3,'this is a line with agent in it');
1 row created.
SQL> INSERT INTO tblTest(id,testContent) VALUES (4,'this is a line with agentstem in it');
1 row created.
SQL> INSERT INTO tblTest(id,testContent) VALUES (5,'xxxagent xxxxx');
1 row created.
SQL>
SQL> CREATE INDEX idxtblTest
2 ON tblTest(testContent)
3 INDEXTYPE IS CTXSYS.CONTEXT;
Index created.
SQL> SQL> --Use of () SQL> SELECT id,testContent
ID TESTCONTENT
-- --------------------------------------------------1 agents
SQL> SQL> --use of {} SQL> SELECT id,testContent
ID TESTCONTENT
-- --------------------------------------------------2 agent
SQL> SQL> SQL> SELECT *
SQL>
SQL>
Received on Wed Sep 21 2005 - 08:00:41 CDT
![]() |
![]() |