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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Getting a sub-clob

Re: Getting a sub-clob

From: Thomas Kyte <tkyte_at_oracle.com>
Date: 5 Apr 2002 10:14:22 -0800
Message-ID: <a8kphu01cfd@drn.newsguy.com>


In article <5640b938.0204050923.153365d3_at_posting.google.com>, beautiful_idiot_at_yahoo.com says...
>
>I'd like to do the following:
>
>select DBMS_LOB.substr(dna_raw_sequence,400,1) from dna_sequence where
>dna_sequence_id =7000000000506637
>
>Except have it work on substrings up to the full length of the clob.
>
>The above works wonderfully as long as you don't go beyond the
>varchar2 limit.
>
>And I'd really like it if I didn't have to write any PL/SQL but could
>just use an existing function.
>
>No luck after a morning of poking through the docs, google groups, and
>bugging local dba.
>
>Thanks in advance!

The limit is the limit - for varchar2 - 4000, raw/char -- 2000.

What is the client? why cannot the client get the entire LOB and get the pieces it wants using the API's that work on LOBS?

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Fri Apr 05 2002 - 12:14:22 CST

Original text of this message

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