Unix Technical Forum

select statement -format longer record result set!! HELP PLEASE!!

This is a discussion on select statement -format longer record result set!! HELP PLEASE!! within the DB2 forums, part of the Database Server Software category; --> I have a select statement that has more than 20 fields and result set record length is more than ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 03:29 AM
hikums@gmail.com
 
Posts: n/a
Default select statement -format longer record result set!! HELP PLEASE!!

I have a select statement that has more than 20 fields and result set
record length is more than 300 characters for each row. How do I modify
the sql such that the output is formatted for single page view, and
include new lines after the fields, as necessary. Certain fields should
be on its own line.

Thanks for the help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 03:29 AM
lpedron@gmail.com
 
Posts: n/a
Default Re: select statement -format longer record result set!! HELP PLEASE!!

"select col1 || chr(10) || col2 || chr(10) || col3 from table1 "

would return

col1
col2
col3

for each row selected.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 03:29 AM
hikums@gmail.com
 
Posts: n/a
Default Re: select statement -format longer record result set!! HELP PLEASE!!

Thanks, I appreciate your timely help.

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 03:55 AM.


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