Обсуждение: Add ON UPDATE CASCADE to an existing table

Поиск
Список
Период
Сортировка

Add ON UPDATE CASCADE to an existing table

От
"Matt Arnilo S. Baluyos"
Дата:
hello everyone,

how do i add an ON UPDATE/DELETE CASCADE constraint to an existing table?


Re: Add ON UPDATE CASCADE to an existing table

От
Sean Davis
Дата:
On Oct 22, 2004, at 2:50 AM, Matt Arnilo S. Baluyos wrote:
>
> how do i add an ON UPDATE/DELETE CASCADE constraint to an existing
> table?

Do you mean a foreign key constraint?  I think this may help.

http://www.postgresql.org/docs/current/static/sql-altertable.html

Sean