From: Richard H <dev@archonet.com>
To: Marios Moutzouris <mariosm@netactive.co.za>
Cc: pgsql-sql@postgresql.org
Subject: Re: rows equal
Date: Sat, 24 Mar 2001 01:09:34 GMT
Message-ID: <20010324.1093400@client.archonet.com> (raw)
In-Reply-To: <998a7e$ppc$1@nnrp01.ops.uunet.co.za>
References: <998a7e$ppc$1@nnrp01.ops.uunet.co.za>
On 3/20/01, 7:23:04 PM, Marios Moutzouris <mariosm@netactive.co.za> wrote
regarding [SQL] rows equal:
> Hello
> I need a sql query to a postgresql database which can tell me whether the
> rows returned ar equal.
> i.e
> -------
> Status
> -------
> Order
> -------
> Collected
> ----------
> This is two columns. Both are not equal.
> Any help?.......without having to write code to fetch the result and go
> through etc etc.
Sorry - don't think so. Unless you've defined a unique index on one or
more of these columns you'll have to check the contents of the columns.
If they are never supposed to be the same, define a unique index.
- Richard Huxton
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, mariosm@netactive.co.za
Subject: Re: rows equal
In-Reply-To: <20010324.1093400@client.archonet.com>
References: <998a7e$ppc$1@nnrp01.ops.uunet.co.za> <20010324.1093400@client.archonet.com>
* 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