pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sascha Ziemann <ziemann@secunet.de>
To: Michael Glaesemann <grzm@myrealbox.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: UNIQUE constraint
Date: 09 Aug 2004 11:41:49 +0200
Message-ID: <m3hdrcps0y.fsf@sn-e0310.ek.secunet.de> (raw)
In-Reply-To: <7E5F5B5E-E996-11D8-B87D-000A95C88220@myrealbox.com>
References: <m37jscdszl.fsf@sn-e0310.ek.secunet.de>
	<7E5F5B5E-E996-11D8-B87D-000A95C88220@myrealbox.com>

Michael Glaesemann <grzm@myrealbox.com> writes:

> On Aug 7, 2004, at 3:25 AM, Sascha Ziemann wrote:
> > CREATE TABLE example (
> >     a integer,
> >     b integer,
> >     c integer,
> >     UNIQUE (a, c)
> > );
> >
> > But it is not clean to me.  Does the above example mean that the list
> > of pairs must be unique
> 
> Yes.

Do you know wheather this is part of the SQL standard?  I have to
write an application that works on Postgresql and Oracle.  Is this the
same on Oracle?

Sorry for asking but right now I have no access to the database to
test it.

cu Sascha

-- 
secunet Security Networks AG, Im Teelbruch 116, 45219 Essen
Tel: +49-2054-123-408   Fax: +49-2054-123-123
PGP: FBE2 A49B 6526 C1B4 7F10  24E4 5004 7C27 6E9A 9698




view thread (8+ messages)

Message-ID: <m3hdrcps0y.fsf@sn-e0310.ek.secunet.de>
Permalink:  ../m3hdrcps0y.fsf@sn-e0310.ek.secunet.de/
Also on:    postgresql.org/message-id/m3hdrcps0y.fsf@sn-e0310.ek.secunet.de

 · 

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: ziemann@secunet.de, grzm@myrealbox.com
  Subject: Re: UNIQUE constraint
  In-Reply-To: <m3hdrcps0y.fsf@sn-e0310.ek.secunet.de>

* 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