If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Converting LONG datatype column into BLOB datatype in Oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-12, 04:58
oraclethebest oraclethebest is offline
Registered User
 
Join Date: Oct 2011
Posts: 3
Converting LONG datatype column into BLOB datatype in Oracle

Hi,

I have a source data in a column with LONG datatype. I want to insert that data into a separate table in a column which has BLOB datatype. Please help

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-01-12, 05:03
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
LONG is a character type column, why do you want to convert that into a BLOB (binary) column?
Reply With Quote
  #3 (permalink)  
Old 02-01-12, 05:05
oraclethebest oraclethebest is offline
Registered User
 
Join Date: Oct 2011
Posts: 3
It's the requirement by the client and they have made their table structures like that.
Reply With Quote
  #4 (permalink)  
Old 02-01-12, 05:26
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
That sounds like a very strange requirement. What do you do with character encodings? How do you ensure future data will be stored with the correct encoding?

Search http://asktom.oracle.com/ for the keywords "convert long" and you'll get some answers on this. Though the usual way is to convert them to CLOB. But the basic approach should be the same
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On