Re: How to create primary key

Поиск
Список
Период
Сортировка
От Samantha Atkins
Тема Re: How to create primary key
Дата
Msg-id 54B35BA5-DA2B-42D7-968F-4493094168C9@mac.com
обсуждение исходный текст
Ответ на Re: How to create primary key  (Raymond O'Donnell <rod@iol.ie>)
Ответы Re: How to create primary key
Re: How to create primary key
Список pgsql-general
On Nov 6, 2007, at 1:15 AM, Raymond O'Donnell wrote:

> On 06/11/2007 08:54, Reg Me Please wrote:
>
>> What'd be the syntax to create a primary key on an already build
>> table?
>
> ALTER TABLE test ADD CONSTRAINT test_pk PRIMARY KEY (f1);
>

So, ALTER TABLE test ADD PRMARY KEY(f1 [, ... ] )
isn't enough?  It appears in the examples.  What more does the
explicit test_pk do that wouldn't happen anyway?

- samantha


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

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