sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Veeru71's Avatar

CLOB data is getting truncated on SELECT


Question posted by: Veeru71 (Guest) on January 28th, 2008 02:35 PM
When I am SELECT'ing a CLOB column from command prompt, the output is
getting truncated after a certail limit (8 K ??)
How do I get the full data out of a CLOB column? Are there any string
manipuration functions for CLOB fields to read it in multiple chunks ?

Thanks in advance.
1 Answer Posted
Dave Hughes's Avatar
Guest - n/a Posts
#2: Re: CLOB data is getting truncated on SELECT

Veeru71 wrote:
Quote:
Originally Posted by
When I am SELECT'ing a CLOB column from command prompt, the output is
getting truncated after a certail limit (8 K ??)
How do I get the full data out of a CLOB column? Are there any string
manipuration functions for CLOB fields to read it in multiple chunks ?


IIRC, the DB2 CLP truncates any output >8k (presumably because most of
the time you don't want tons of CLOB stuff spilling all over the
console and filling up your scroll-back buffer :-). Not sure if there's
an option to override this (I've never seen one personally), but you
could always bash together a little script (Python, Perl, whatever
language you prefer) to extract the full value.

For reading "chunks" from a CLOB, have you tried SUBSTR?


Cheers,

Dave.
 
Not the answer you were looking for? Post your question . . .
197,050 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,050 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors