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 > seqtype=I

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-17-04, 18:09
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
seqtype=I

In SYSCAT.SEQUENCES there are system generated identity sequnces, which I guess are sequences used internally by DB2 for implementing identity columns ...

Does anyone know how to associate the table to the identity sequences they refer to ...

Thanks

sAthyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #2 (permalink)  
Old 08-17-04, 19:09
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
It looks like the syscat.COLIDENTATTRIBUTES view is the link between table/column and SEQID.
Reply With Quote
  #3 (permalink)  
Old 08-18-04, 03:32
AStefan AStefan is offline
Registered User
 
Join Date: Jun 2004
Posts: 57
syscat.sequences is only for sequences not for identity

The object syscat.sequences keep the sequences (similar to oracle sequences) and is nothing to do with identity.
In Db2 we have both posibilities to generate ID-s:
sequence or identity. IN sql server we only have identity and in Oracle only sequences. If you need identity information in system tables you can search in syscat.columns the column identity.
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