Unix Technical Forum

Re: Converting TEXT/BYTE to CLOB/BLOB

This is a discussion on Re: Converting TEXT/BYTE to CLOB/BLOB within the Informix forums, part of the Database Server Software category; --> On Fri, 2007-01-12 at 08:18 -0700, Laurie Gustin wrote: > We are trying to move some of our data ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 03:58 PM
Carsten Haese
 
Posts: n/a
Default Re: Converting TEXT/BYTE to CLOB/BLOB

On Fri, 2007-01-12 at 08:18 -0700, Laurie Gustin wrote:
> We are trying to move some of our data to Smart Large Objects in sbspaces....
>
> We are currently looking at unloading each TEXT field to a file using unload from a cron job, one row at a time - we cant seem to get unload to work from within a stored procedure. Then using the FILETOCLOB function from within and stored proc to load the data into the CLOB field.
>
> Does anyone know of an easier way to do this without writing a lot of C code?


TEXT/BYTE can be cast directly to CLOB/BLOB.

select cat_descr::CLOB from catalog

select cat_picture::BLOB from catalog

Hope this helps,

--
Carsten Haese | Phone: (419) 861-3331
Software Engineer | Direct Line: (419) 794-2531
Unique Systems, Inc. | FAX: (419) 893-2840
1687 Woodlands Drive | Cell: (419) 343-7045
Maumee, OH 43537 | Email: carsten@uniqsys.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com