pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Foreign Keys in PostGreSQL
2+ messages / 2 participants
[nested] [flat]

* Foreign Keys in PostGreSQL
@ 2000-09-06 06:20 vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
  2000-09-06 06:41 ` Re: Foreign Keys in PostGreSQL Karel Zak <zakkr@zf.jcu.cz>
  0 siblings, 1 reply; 2+ messages in thread

From: vijayendra mohan agrawal @ 2000-09-06 06:20 UTC (permalink / raw)
  To: pgsql-admin

Dear all,

How to define FOREIGN KEY in a table ??? 

Thank You,
Best Regards,
Vijay

************************************************************
Vijayendra Mohan Agrawal
Wipro Technologies
26, Hosur Main Road, Bommanhalli,
Bangalore-560068, India
Tel: 91-80-5722296 Extn:3076
Fax: 91-80-5722696
E-mail : Vijayendra.Agrawal@wipro.com
**************************************************************



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Foreign Keys in PostGreSQL
  2000-09-06 06:20 Foreign Keys in PostGreSQL vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
@ 2000-09-06 06:41 ` Karel Zak <zakkr@zf.jcu.cz>
  0 siblings, 0 replies; 2+ messages in thread

From: Karel Zak @ 2000-09-06 06:41 UTC (permalink / raw)
  To: vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>; +Cc: 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.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-09-06 06:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-09-06 06:20 Foreign Keys in PostGreSQL vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
2000-09-06 06:41 ` Karel Zak <zakkr@zf.jcu.cz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox