Postgresql constraint
Posted
by Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2010-06-09T11:12:05Z
Indexed on
2010/06/09
12:02 UTC
Read the original article
Hit count: 223
postgresql
|foreign-key
I cannot seem to get this right, I am trying to modify a field to be a foreign key, with cascading delete... what am i doing wrong?
ALTER TABLE my_table ADD CONSTRAINT $4 FOREIGN KEY my_field REFERENCES my_foreign_table ON DELETE CASCADE;
© Stack Overflow or respective owner