Re: How to create primary key

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: How to create primary key
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C27F7BA1@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на How to create primary key  (Reg Me Please <regmeplease@gmail.com>)
Список pgsql-general
Reg Me Please wrote:
> What'd be the syntax to create a primary key on an already 
> build table?

As described in the documentation:

ALTER TABLE <name> ADD [CONSTRAINT <constraint name>]
PRIMARY KEY (<colname> [, ...])
[WITH (FILLFACTOR = <number>)] [USING INDEX TABLESPACE <tbsp name>]

Yours,
Laurenz Albe

В списке pgsql-general по дате отправления:

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: How to create primary key
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: How to create primary key