Re: Re: Design points (was: parent_ctor())
| From: | Kristian Köhntopp | Date: | Tue, 18 Jul 2000 16:37:52 +0000 |
| Subject: | Re: Re: Design points (was: parent_ctor()) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24981@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> AFAIK, meaning of foreign key is the opposite. I.e., this is not a link
> between tables, it is a constraint on two table's contents. Links are done
> with joins, you don't need any tricks for it. Are we talking about
> different SQLs?
No, you are correct, my examples were inexact. It is an advantage
of SQL that the relationships between types are not as fixed as
relationships between C types. Also, relationships between SQL
types can be enforced better than relationships between C types,
and this is where foreign keys and REFERENCES statements come
into play.
Kristian
--
Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel
Tel: +49 431 386 436 00, Fax: +49 431 386 435 99
Using PHP3? See our web development library at http://phplib.netuse.de/