Re: rows equal

Поиск
Список
Период
Сортировка
От Richard H
Тема Re: rows equal
Дата
Msg-id 20010324.1093400@client.archonet.com
обсуждение исходный текст
Ответ на rows equal  ("Marios Moutzouris" <mariosm@netactive.co.za>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Grant
Дата:
Сообщение: Serials.
Следующее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: Serials.