Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Select and load CLOB column data into another table

Maheswara ReddyAug 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
3,699 views