SERIAL and Primary Key

Поиск
Список
Период
Сортировка
От Mike Gould
Тема SERIAL and Primary Key
Дата
Msg-id 20080229202811.c8711c15@mail.allcoast.net
обсуждение исходный текст
Ответы Re: SERIAL and Primary Key
Re: SERIAL and Primary Key
Re: SERIAL and Primary Key
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Removing Users and Revoking Privileges
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Removing Users and Revoking Privileges