SERIAL and Primary Key - Mailing list pgsql-general

From Mike Gould
Subject SERIAL and Primary Key
Date
Msg-id 20080229202811.c8711c15@mail.allcoast.net
Whole thread Raw
Responses Re: SERIAL and Primary Key
Re: SERIAL and Primary Key
Re: SERIAL and Primary Key
List pgsql-general
CREATE TABLE "fav5"."batchnumber" (
  "batchnumberid" SERIAL NOT NULL,
  "processtype" SMALLINT NOT NULL,
  "termloc" CHAR(3) NOT NULL,
  "batchno" INTEGER NOT NULL
) WITHOUT OIDS;

With the above table definition, is batchnumberid by default also defined as the primary key or do I still need to define a separate Primary Key constraint?

 


Best Regards,

Michael Gould
All Coast Intermodal Services, Inc.
904-226-0978

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Removing Users and Revoking Privileges
Next
From: Alvaro Herrera
Date:
Subject: Re: Removing Users and Revoking Privileges