Re: PRIMARY KEY and UNIQUE

Поиск
Список
Период
Сортировка
От Darren Ferguson
Тема Re: PRIMARY KEY and UNIQUE
Дата
Msg-id Pine.LNX.4.10.10202211359080.17552-100000@thread.crystalballinc.com
обсуждение исходный текст
Ответ на PRIMARY KEY and UNIQUE  (Erwin Ambrosch <erwin.ambrosch@ebutec.com>)
Список pgsql-general
No the unique constraint is not necessary because a primary key by
definition should be able to be used to uniquly define a row tuple
whatever it is called

Darren Ferguson

On Thu, 14 Feb 2002, Erwin Ambrosch wrote:

> Hi,
>
> I have a such a table.
>
> CREATE TABLE int_article (
>   name          VARCHAR(12) UNIQUE
>   headline      TEXT,
>   summary      TEXT,
>   main            TEXT,
>   footer           TEXT,
>   PRIMARY KEY (name)
> );
>
> Is the UNIQUE constraint neccessary, because if have specified the column
> name to be the primary key.
>
> Thanks in advance
> Erwin
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>


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

Предыдущее
От: Hans-Juergen Schoenig
Дата:
Сообщение: Re: Postgresql/linux speed + reliability
Следующее
От: Chris
Дата:
Сообщение: Re: Perl or PHP DB Access?