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 generating truncated results

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-06, 12:01
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Select generating truncated results

Hi All,

I am running this select query

(select table_a.id, table_a.name, table_b.date, table_b.text from table_a INNER JOIN table_b on table_a.id=table_b.id where table_b.text between "2006-06-15 03:12:00.000000' and '2006-06-20 18:34:51.000000')

Now the text column of table_b is a CLOB and I am getting tuncated results for this column everytime I run this query. Also I wanted to send the output of this query to a .xls, so I used the export command to do that, but even then I am getting truncated results.

ENV: DB2 UDB v8.2, AIX

I would appreciate any help in this.

Thanks
Anks
Reply With Quote
  #2 (permalink)  
Old 06-29-06, 18:22
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
In some DB2 interfaces, and certain export modes (unless you define a seperate LOB file), the LOB will be truncated at 32K, or possibly less depending on the interface.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-29-06, 22:25
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Thanks Marcus.

Anks
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