Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How can I limit the size of field in this SQL query?
"john" <uu_gg_at_hotmail.com> wrote in message
news:a82b1436.0204241119.cbfe816_at_posting.google.com...
> Hi,
> I have this query I use to exract data from Oracle8i DB, and one
> field's "ref_text" Datatype is "Long", when I do the query I want to
> limit this data to 2000 Char, how can I do that? I tried to use
> substr() and max(), length(), but no luck so far. Could you please
> show me how to do this, thanks.
>
> John
<<<---snip--->>>
Hi,
have a look at Tom Kytes site
(remove CR)
or generally serarch for LONG on the site ...
String functions are not usable with long datatype ins sql but in PL/SQL ...
HtH
Thomas (no, not Kyte :-) )
-- Posted via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Thu Apr 25 2002 - 04:50:12 CDT