Deleting conflicting rows when creating a foreign key

Поиск
Список
Период
Сортировка
От Igor Katson
Тема Deleting conflicting rows when creating a foreign key
Дата
Msg-id 4991875F.4080508@gmail.com
обсуждение исходный текст
Ответы Re: Deleting conflicting rows when creating a foreign key  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
I am doing an ALTER TABLE to create a foreign key, however with some
rows i get:

insert or update on table "name" violates foreign key constraint "name_fkey"

How can I just drop the conflicting rows while doing that?

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

Предыдущее
От: SHARMILA JOTHIRAJAH
Дата:
Сообщение: Re: ora2pg or dbi_link ?
Следующее
От: "Rob Richardson"
Дата:
Сообщение: Slow database creation