PRIMARY KEY and UNIQUE

Поиск
Список
Период
Сортировка
От Erwin Ambrosch
Тема PRIMARY KEY and UNIQUE
Дата
Msg-id 200202141509.g1EF9uM27132@email.ebutec.at
обсуждение исходный текст
Ответы Re: PRIMARY KEY and UNIQUE
Re: PRIMARY KEY and UNIQUE
Список pgsql-general
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

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error trying to restore db with blobs
Следующее
От: Darren Ferguson
Дата:
Сообщение: Re: PRIMARY KEY and UNIQUE