Re: Dublicates pairs in a table.

From: Richard Huxton <dev(at)archonet(dot)com>
To: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Dublicates pairs in a table.
Date: 2002-09-27 16:37:43
Message-ID: 200209271737.43262.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Friday 27 Sep 2002 5:17 pm, Jean-Luc Lachance wrote:
> What's wrong with
> CREATE UNIQUE INDEX foo_both_uniq ON foo(a,b);
> ???

Because he specifically wanted values of ('a','b') and ('b','a') to be treated
as equivalent (see quote).

> > > INSERT INTO test (c1,c2) VALUES('a','c');
> > > INSERT INTO test (c1,c2) VALUES('c','a');

Note Stephen Szabo's observation that I'd missed the obvious need for some
separator so ('a','ab') is different from ('aa','b') - Doh!

- Richard Huxton

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2002-09-27 16:44:55 Re: [SQL] function return multiply rows
Previous Message Jean-Luc Lachance 2002-09-27 16:17:34 Re: Dublicates pairs in a table.