DB2 temporary tables help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surabhighosh
    New Member
    • Oct 2006
    • 1

    #1

    DB2 temporary tables help

    Is it always necessary to have a primary key for a temporary table?
  • reharpernc
    New Member
    • Oct 2006
    • 5

    #2
    Primary keys are never required in DB2.

    The only thing that a "primary key" clause gives you is that DB2 will create a unique index to support the unique rule specified in the primary key clause.

    You could do the same by defining your own unique index (without using the "primary key" clause).

    Or, as your question asks, you can create any table (temporary or otherwise) without indexes. Indexes are entirly optional.

    Russ

    Comment

    Working...