Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Search in LONG fields

Re: Search in LONG fields

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/08/01
Message-ID: <3986B2A0.2BCA@yahoo.com>#1/1

Alexei Sorokin wrote:
>
> HI all,
> Please, help me find how to search text in LONG filelds??
> Clause WHERE longtxt LIKE '%%' doesn't work
>
> regards
> alexei sorokin

If they are less than 32k, then you can use pl/sql ...

fetch the long into a varchar2(32767)
then use instr to match within the string

You may also get some joy using TO_LOB (8.1.6) and then applying DBMS_LOB functions..

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Tue Aug 01 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US