how to add "on delete cascade" to a foreign key constraint?
how to add "on delete cascade" to a foreign key constraint?
От:
A B <gentosaker@gmail.com>
Дата:
Hello.
I have a table with a foreign key constraint, how can I add "on delete
cascade" to the foreign key?
Re: how to add "on delete cascade" to a foreign key constraint?
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
A B 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