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 > Is their a table with a list of IDENTITY columns?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-14-04, 13:49
iceman iceman is offline
Registered User
 
Join Date: Apr 2003
Posts: 23
Question Is there a table with a list of IDENTITY columns?

Hi all.

Was wondering if anybody knew if there was a system table in the database that kept a list of columns that have identity values on them? This is the third time I've searched for the answer but had no luck.

Last edited by iceman; 05-14-04 at 14:05.
Reply With Quote
  #2 (permalink)  
Old 05-14-04, 13:56
sathyaram_s sathyaram_s is online now
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
SYSCAT.COLUMNS
Column Name : IDENTITY
Value : Y
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 05-14-04, 14:09
urs_77 urs_77 is offline
Member
 
Join Date: Jan 2003
Location: Schaumburg, IL
Posts: 79
db2 "select identity, substr(tabname,1,30), substr(colname, 1, 30) from syscat.columns"
__________________
Naveen Urs
DBA Manager
IBM Certified Solutions Expert - DB2 LUW V7, V9
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