Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Match Full on foreign Key


  • From: ljb <lbayuk(at)mindspring(dot)com>
  • To: pgsql-general(at)postgresql(dot)org
  • Subject: Re: Match Full on foreign Key
  • Date: Sun, 9 Feb 2003 22:57:23 +0000 (UTC)
  • Message-id: <b26mci$2sj7$1@news.hub.org> <text/plain>

sl26(at)ukc(dot)ac(dot)uk wrote:
> I have defined the following foreign keys in a table:
> 
> *********
> FOREIGN KEY (staff_login) REFERENCES staff (staff_login) MATCH FULL ON
> DELETE CASCADE ON UPDATE CASCADE,
> 
> 	FOREIGN KEY (module_code) REFERENCES module (module_code) MATCH FULL
> ON DELETE CASCADE ON UPDATE CASCADE,
> *********
> 
> these two fields make the primary key of the table in which they are
> in.
> 
> MATCH FULL will not allow one column of a multi-column foreign key to
> be NULL unless all foreign key columns are NULL...so:
>...

MATCH FULL is not relevant because you don't have multi-column foreign
keys. You have 2 single column foreign keys.



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group