Re: Foreign Keys in PostGreSQL - Mailing list pgsql-admin

From Karel Zak
Subject Re: Foreign Keys in PostGreSQL
Date
Msg-id Pine.LNX.3.96.1000906083558.15689B-100000@ara.zf.jcu.cz
Whole thread Raw
In response to Foreign Keys in PostGreSQL  ("vijayendra mohan agrawal" <vijayendra.agrawal@wipro.com>)
List pgsql-admin
On Wed, 6 Sep 2000, vijayendra mohan agrawal wrote:

> Dear all,
>
> How to define FOREIGN KEY in a table ???

Found you some problem in great PostgreSQL documentation?

                    Karel

CREATE [ TEMPORARY | TEMP ] TABLE table (
    column type
    [ NULL | NOT NULL ] [ UNIQUE ] [ DEFAULT value ]
    [column_constraint_clause | PRIMARY KEY } [ ... ] ]
    [, ... ]
    [, PRIMARY KEY ( column [, ...] ) ]
    [, CHECK ( condition ) ]
    [, table_constraint_clause ]
    ) [ INHERITS ( inherited_table [, ...] ) ]

Column CONSTRAINT Clause

[ CONSTRAINT name ] { PRIMARY KEY |  UNIQUE } ( column [, ...] )
[ CONSTRAINT name ] CHECK ( constraint )
[ CONSTRAINT name ] FOREIGN KEY ( column [, ...] )
                     REFERENCES reftable
                      (refcolumn [, ...] )
                      [ MATCH matchtype ]
                      [ ON DELETE action ]
                      [ ON UPDATE action ]
                      [ [ NOT ] DEFERRABLE ]
                      [ INITIALLY checktime ]

 .......etc. ....etc.


pgsql-admin by date:

Previous
From: "vijayendra mohan agrawal"
Date:
Subject: Foreign Keys in PostGreSQL
Next
From: Marcin Mazurek
Date:
Subject: limitinf size of db per user?