Drop column constraint

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Drop column constraint
Дата
Msg-id alpine.LNX.2.20.2010300825310.24081@salmo.appl-ecosys.com
обсуждение исходный текст
Ответы Re: Drop column constraint  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: Drop column constraint  (Chris Sterritt <chris.sterritt@yobota.xyz>)
Список pgsql-general
A table has a unique constraint on a column that needs removing. Reading the
postgres-12.x docs for alter table it appears the correct syntax is:

alter table locations drop constraint unique;

but this is wrong.

Trying 'alter table locations alter column loc_nbr drop constraint unique;' also
failed.

What's the proper syntax to drop the unique constraint on a table column?

TIA,

Rich




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

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: Issue executing query from container
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Drop column constraint