Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I currently am working with some data that is being stored as a CLOB between 4000 and 6000 characters. I would like to perform the TRANSLATE function on it but I learned that it's not possible with a CLOB. So my thought is to split the CLOB into multiple VARCHAR2's, and perform the TRANSLATE operation on each part. Say I have a 6000 character CLOB. I started by using SUBSTR(COL,4000,1) and storing the first 4000 in a variable. However, I'm having trouble getting the characters between 4000 - 6000. How can I go about splitting this CLOB?

share|improve this question
add comment

1 Answer 1

Look at DBMS_LOB.SUBSTR and pay close attention to the differing definition from the SUBSTR you are familiar with.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.