Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> How to convince OText that whitespace = terminator
I think the subject says it all, but here's the details:
Is there a way to setup the index or the query to return tbe first two rows without the third using a single CONTAINS clause? For example:
SELECT *
FROM my_otext
WHERE CONTAINS(my_col,'12345 678')
only returns the first row,
SELECT *
FROM my_otext
WHERE CONTAINS(my_col,'12345%678')
only returns the second, and
SELECT *
FROM my_otext
WHERE CONTAINS(my_col,'12345/&678')
returns all three. I would like a combo of the first and second SELECTS but in a single CONTAINS.
I *know* this can be done, but I'm having a brain-cramp Monday. Must be lack of beer.
TIA,
Rich
Rich Jesse System/Database Administrator Rich.Jesse_at_qtiworld.com Quad/Tech International, Sussex, WI USA
Disclaimer: Brett has a torn LCL, but should be in against Miami. Go #4! :D
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jesse, Rich
INET: Rich.Jesse_at_qtiworld.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Oct 21 2002 - 15:53:33 CDT
![]() |
![]() |