Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    2

    Question Unanswered: Auto incrementation in CREATE TABLE?

    Is there any definition in the CREATE TABLE syntax that allows for auto incrementation, especially for primary keys? I checked in PostgreQL (O'Reilly) and "SQL in a Nutshell", but I couldn't find anything obvious.

  2. #2
    Join Date
    Sep 2003
    Location
    Roma
    Posts
    19
    Use the "SERIAL" datatype, details on http://www.postgresql.org/docs/7.3/s...ATATYPE-SERIAL
    --
    Frank "Pazzooo" Contrepois

  3. #3
    Join Date
    Sep 2003
    Posts
    2
    Thanks!

Posting Permissions

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