Re: how to add "on delete cascade" to a foreign key constraint?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to add "on delete cascade" to a foreign key constraint?
Дата
Msg-id 27660.1282148647@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how to add "on delete cascade" to a foreign key constraint?  (A B <gentosaker@gmail.com>)
Список pgsql-novice
A B <gentosaker@gmail.com> writes:
> I have a table with a foreign key constraint, how can I add "on delete
> cascade" to the foreign key?

You can't --- just drop the constraint and add a new one.

            regards, tom lane

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

Предыдущее
От: A B
Дата:
Сообщение: how to add "on delete cascade" to a foreign key constraint?
Следующее
От: Jorge Alberto Fuentes Casillas
Дата:
Сообщение: Installing psqlodbc