Re: How to create primary key

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: How to create primary key
Дата
Msg-id 47306F93.3060607@archonet.com
обсуждение исходный текст
Ответ на Re: How to create primary key  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
Albe Laurenz wrote:
> 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.

It is indeed a typo. Thanks Albe.

Particularly irritating as I'd bothered give a link to the right manual
page too...

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: How to create primary key
Следующее
От: SHARMILA JOTHIRAJAH
Дата:
Сообщение: Postgresql simple query performance question