Re: Primary key on existing table?

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Primary key on existing table?
Дата
Msg-id 4A94179D020000250002A1CB@gw.wicourts.gov
обсуждение исходный текст
Ответ на Primary key on existing table?  (Carol Walter <walterc@indiana.edu>)
Список pgsql-admin
Carol Walter <walterc@indiana.edu> wrote:
> This may be a silly question but I don't see any place where the
> documentation explicitly addresses whether or not you can designate
> a  particular column as a primary key after the table is created.

It sounds like you need ALTER TABLE DROP CONSTRAINT and ALTER TABLE
ADD table_constraint:

http://www.postgresql.org/docs/8.4/interactive/sql-altertable.html

-Kevin

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

Предыдущее
От: Carol Walter
Дата:
Сообщение: Primary key on existing table?
Следующее
От: Ries van Twisk
Дата:
Сообщение: Re: Primary key on existing table?