fk constraint can't be dropped

Поиск
Список
Период
Сортировка
От Zhang, Anna
Тема fk constraint can't be dropped
Дата
Msg-id 5511D658682A7740BA295CCF1E1233A635A866@vsvapostal2.bkup3
обсуждение исходный текст
Ответы Re: fk constraint can't be dropped
Список pgsql-admin
Hi,
I created a foreign key constraint on table referral like this:

alter table referral add constraint fk_referral foreign key (handle)
references domain (handle);
create

alter table referral drop constraint fk_referral restrict;
ERROR: ALTER TABLE / DROP CONSTRAINT: fk_referral does not exist.

I am using postgres 7.2. If fk can't be dropped, what the synax: ALTER TABLE
[ ONLY ] table DROP CONSTRAINT constraint { RESTRICT | CASCADE } for in
docs? If we have to drop fk, does this mean we have to drop table and
recreate without fk? Stupid!
Anybody has an experience that droped fk succefully?  Thanks!

Anna Zhang



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

Предыдущее
От: David Gilbert
Дата:
Сообщение: Re: Linux Distributions
Следующее
От: Chris Pesko
Дата:
Сообщение: production state?????/