pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Sherman <adam@tritus.ca>
To: pgsql-sql@postgresql.org
Subject: Constraint Syntax Question
Date: Sun, 11 May 2003 18:17:54 -0400
Message-ID: <7380000.1052691474@saturn> (raw)

I have a many-to-many relationship between A & B where a B *must* relate to 
at least 1 A but an A may have zero Bs.

How do add this using an ALTER TABLE statement?

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819




view thread (3+ messages)  latest in thread

Message-ID: <7380000.1052691474@saturn>
Permalink:  ../7380000.1052691474@saturn/
Also on:    postgresql.org/message-id/7380000.1052691474@saturn

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: adam@tritus.ca
  Subject: Re: Constraint Syntax Question
  In-Reply-To: <7380000.1052691474@saturn>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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