Search Postgresql Archives

Re: referential integrity constraints not checked inside

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christian Rank wrote:

create table a (n integer); create table b (n integer); alter table a add primary key (n); alter table b add foreign key (n) references a(n);

Have you considered using "on delete cascade" in table b?

--
jimoe at sohnen-moe dot com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux