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 > How to display all columns values except one column values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-09, 03:03
pb18798 pb18798 is offline
Registered User
 
Join Date: May 2009
Posts: 2
Thumbs down How to display all columns values except one column values

Hi All,

I want to display all columns values except one column values in db2 UDB tables

Ex: I have table with name table1 having 100 coulmns col1,col2 etc...now I want to display only 99 columns values

If we use select * from table1-->its display all 100 volumns values instead of this I want to display only 99 columns values ..

Please help me..

Thank you.
Reply With Quote
  #2 (permalink)  
Old 05-12-09, 03:52
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
google for "user view"
Reply With Quote
  #3 (permalink)  
Old 05-12-09, 03:58
pb18798 pb18798 is offline
Registered User
 
Join Date: May 2009
Posts: 2
Thank you for replaying....Pls allobarate ..
Reply With Quote
  #4 (permalink)  
Old 05-12-09, 11:02
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
How about you do not do select * To begin with.

Can you explain what is the business need to display all 99 columns? How many screens would it take to accomplish this?

If you do not know about views, you should talk to your DBA and have them crete you one.

For more info on the it ftp://ftp.software.ibm.com/ps/produc...S/db2s2e90.pdf
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #5 (permalink)  
Old 05-12-09, 14:36
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
What is the meaning of "allobarate"?
I'm not well at English, and I couldn't fund the word on my dictionaries.
Would someone please explain the word?
Reply With Quote
  #6 (permalink)  
Old 05-12-09, 14:53
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by pb18798
I want to display all columns values except one column
You'll have to write out all 99 column names after the SELECT keyword.
SQL does not have a shortcut for this.
(It shouldn't have had the "SELECT *" shortcut, neither, but that's an other discussion
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #7 (permalink)  
Old 05-12-09, 15:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by tonkuma
What is the meaning of "allobarate"?
I'm not well at English, and I couldn't fund the word on my dictionaries.
Would someone please explain the word?
I think the OP mean "elaborate"...

Andy
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