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 > DB2 > select clob datatype column in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-04, 15:03
kid03 kid03 is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
select clob datatype column in DB2

Guys,
I am new to DB2. I am trying to select a CLOB object in DB2. The data in the field is about 25MG. When I do a simple select on that column, I am seeing only 32K of data. The remaining data is getting truncated. I am sure there has to be a command in DB2 which you can set to increase the size of the clob datatype. May someone please guide me in the right direction.

Appreicate all of your help.

Thanks
Kid
Reply With Quote
  #2 (permalink)  
Old 12-07-04, 15:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by kid03
I am sure there has to be a command in DB2 which you can set to increase the size of the clob datatype.
This actually doesn't have anything to do with the size of a CLOB datatype. DB2 has a 32K restriction on the size of a string literal.

To retrieve the entire CLOB you could either export it with LOBSINFILE option or write a little program that would access the CLOB and do with it whatever it is you need.
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