Re: View from CLOB chunks

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 14 Nov 2008 18:34:09 -0800
Message-ID: <1226716432.960116@bubbleator.drizzle.com>


yuri.dench_at_gmail.com wrote:
> Hello,
> Is it possible to creare a view that will split single CLOB column
> into multiple chunks of VARCHAR2 something like this:
>
> TABLE:
> ---------------------------
> ID INTEGER
> DATA CLOB
>
> into VIEW:
> --------------------------------------------------
> ID INTEGER
> CHUNK_ID INTEGER
> DATA VARCHAR(1000 char)
>
>
> Thanks, Yuri

Use DBMS_LOB.SUBSTR
http://www.psoug.org/reference/dbms_lob.html

-- 
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Nov 14 2008 - 20:34:09 CST

Original text of this message