Howto define a constraint in a existing column

Поиск
Список
Период
Сортировка
От Intengu Technologies
Тема Howto define a constraint in a existing column
Дата
Msg-id a1afa64b0908090223t77d61541pabd18cb5874f04c8@mail.gmail.com
обсуждение исходный текст
Ответы Re: Howto define a constraint in a existing column  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-novice
I am tying to define a primary key constraint to an existing table,
this is what I have tried so far

ALTER TABLE mytable ALTER COLUMN field13 CONSTRAINT name PRIMARY KEY;

I get the following error: ERROR: syntax error at or near "CONSTRAINT"
SQL state: 42601
Character: 61

--
Sindile Bidla

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: viewing user defined functions
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Howto define a constraint in a existing column