Re: How to create primary key

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: How to create primary key
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C27F7C41@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: How to create primary key  (Richard Huxton <dev@archonet.com>)
Ответы Re: How to create primary key
Список pgsql-general
Richard Huxton wrote:
>> What'd be the syntax to create a primary key on an already 
>> build table?
> 
> ALTER TABLE my_table ADD PRIMARY CONSTRAINT (existing_column);

I'm sure it's just a typo, but that is wrong.
It is not ADD PRIMARY CONSTRAINT, but ADD PRIMARY KEY.

Yours,
Laurenz Albe

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