Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BLOP to VARCHAR2

Status
Not open for further replies.

cubi

IS-IT--Management
Sep 20, 2001
32
US
Hi,

Is there a way to convert a table column from BLOB to VARCHAR2 while keeping the data?

I inherit a database, and of the tables has four columns of type BLOB, but the data in them is just text. I want to turn those BLOB columns into VARCHAR2 but preserving the data.

Thank you.
 
Correction on my post. The datatype is CLOB, NOT BLOB. Sorry.
 
You may use dbms_lob.substr function, but you should remember that varchar2 limit in Oracle is 4000 bytes only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top