From: | "serge(dot)fonville" <serge(dot)fonville(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: What is the difference of foreign key? |
Date: | 2009-09-24 14:26:39 |
Message-ID: | 680cbe0e0909240726m3fbd94cak1ee2436a52679288@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
Read http://www.postgresql.org/docs/8.4/static/sql-createtable.html
> REFERENCES *reftable* [ ( *refcolumn* ) ] [ MATCH *matchtype* ] [ ON
> DELETE *action* ] [ ON UPDATE *action* ] (column constraint)
> FOREIGN KEY ( *column* [, ... ] ) REFERENCES *reftable* [ ( *refcolumn* [,
> ... ] ) ] [ MATCH *matchtype* ] [ ON DELETE *action* ] [ ON UPDATE *action
> * ] (table constraint)
HTH
Regards,
Serge Fonville
On Thu, Sep 24, 2009 at 4:18 PM, 纪晓曦 <sheepjxx(at)gmail(dot)com> wrote:
> To be precise,
>
> The difference between
>
> create table a (
> foreign key (id) referenced by b(name),
> );
>
> create table b(
> id integer referenced by b(name),
> );
>
--
Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=10528
http://www.google.bg/support/forum/p/AdSense/thread?tid=1884bc9310d9f923&hl=en
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Molz | 2009-09-24 14:31:59 | repeatedly process termination in PG 8.2 |
Previous Message | sheepjxx | 2009-09-24 14:19:09 | What is the difference of foreign key? |