Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Posts
    23

    Question Unanswered: 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 15:05.

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    SYSCAT.COLUMNS
    Column Name : IDENTITY
    Value : Y
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •