Skip to Main Content

Select and load CLOB column data into another table

carmacAug 19 2020 — edited Aug 19 2020

Hi All,

please suggest me how to extract and load below type of data into another table if the column data type is CLOB. some of the rows length is more than 12000 bytes or characters.

with

t (clob_column) as (

select 'CUST_ID|value1|CUST_NAME|value2|CUST_DEPT|value3|ITEM_ID|value4|' from dual union all

select 'CUST_ID|value1|CUST_DEPT|value3|ITEM_ID|value4|' from dual union all

select 'CUST_NAME|value2|CUST_DEPT|value3|' from dual union all

select 'CUST_ID|value1|ITEM_ID|value4|' from dual union all

select 'CUST_NAME|value2|CUST_DEPT|value3|ITEM_ID|value4|' from dual union all

select 'ITEM_ID|value4|' from dual union all

select 'CUST_DEPT|value3|' from dual union all

select 'CUST_ID|value1|CUST_DEPT|value3|' from dual union all

select 'CUST_NAME|value2|' from dual union all

select 'CUST_DEPT|value3|CUST_ID0|value10|' from dual

)

select * from t;

Thanks,

Comments
Post Details
Added on Aug 19 2020
4 comments
1,618 views