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 > Display Results Without Column Header

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-08-04, 23:16
melb melb is offline
Registered User
 
Join Date: Aug 2003
Location: AUS
Posts: 26
Question Display Results Without Column Header

hi all,
is there anyway of displaying the results without column header in aselect query
example
db2 => select * from test
name age
xxxxx 29
yyyy 35
zzzz 23

into
db2 => select * from test

xxxxx 29
yyyy 35
zzzz 23

cheers
Melb
Reply With Quote
  #2 (permalink)  
Old 06-08-04, 23:47
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Yes there is a parameter that can be set to do that. I am too lazy to look it up for you, so check the Command Reference manual.
__________________
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-09-04, 00:33
melb melb is offline
Registered User
 
Join Date: Aug 2003
Location: AUS
Posts: 26
Thanks marcus.
But I can't find it in the manual. would you mind posting the exact syntax.

cheers
Reply With Quote
  #4 (permalink)  
Old 06-09-04, 02:26
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you go to the thread called Useful DB2 Stuff, you can find the link to download the DB2 manuals. You need the Command Reference. Look in the chapter that deals with the Command Line Processor (CLP). If you are dealing with jdbc or some other interface, you might check out the applciation development manual.
__________________
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
  #5 (permalink)  
Old 06-09-04, 03:34
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You can find the info you want, plus a few other command line options at
http://www.db2click.com/scribble.htm

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 06-09-04, 13:06
rubystep rubystep is offline
Registered User
 
Join Date: Sep 2003
Posts: 85
db2 -x "select ....."
will not produce the headings but just the column(s) desired.
Ruby

Last edited by rubystep; 06-09-04 at 14:10.
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