Search Postgresql Archives

SERIAL and Primary Key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux