Re: Unique is non unique; no nulls

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Unique is non unique; no nulls
Дата
Msg-id 87vea2v7ot.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Unique is non unique; no nulls  (Razvan Costea-Barlutiu <cbrazvan@laitek.com>)
Ответы Re: Unique is non unique; no nulls  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
"Razvan Costea-Barlutiu" <cbrazvan@laitek.com> writes:

> Hello.
>
> Facts:
> 1. System: Win2003
> 2. Postgres 8.2

Is that just 8.2 or 8.2.x? Which x?

> This has way too many ramifications for me to follow so I do appreciate some
> guidance.

What do the outputs of these queries say?

select count(*),count(distinct suid) from mt;

select suid,count(*) from mt group by suid having count(*) > 1;

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

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

Предыдущее
От: Razvan Costea-Barlutiu
Дата:
Сообщение: Unique is non unique; no nulls
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can't connect (2 dbs) or login (2 others)