Re: [SQL] Duplicate rows

From: Andy Lewis <alewis(at)mpsi(dot)net>
To: phd2(at)earthling(dot)net
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Duplicate rows
Date: 1998-05-16 13:18:05
Message-ID: Pine.LNX.3.95.980516081545.14769B-100000@shell.mpsi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Right, I know that there are dups in the column. But, I don't know where they
are nor do I know their value(s). I want to be able to find, say, two interger
values that are in the same column but, different rows.

Thanks

Andy

On Sat, 16 May 1998, Oleg Broytmann wrote:

>Hello.
>
>On Fri, 15 May 1998, Andy Lewis wrote:
>> I have a postgres db with at least 1000 rows in it. I'd like to know if its
>> possible to detect duplicate values of a column if I don't know which values
>> that are dups?
>
> Try to create UNIQUE index on a problematic column. If creating the
>unique index failes - there are duplicates (providing that creating the
>index wouldn't fail by other reasons - disk full, memory shortage, etc.)
>
>Oleg.
>----
> Oleg Broytmann http://members.tripod.com/~phd2/ phd2(at)earthling(dot)net
> Programmers don't die, they just GOSUB without RETURN.
>
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Stephens 1998-05-16 14:02:11 Re: [SQL] Duplicate rows
Previous Message Oleg Broytmann 1998-05-16 09:31:32 Re: [SQL] Duplicate rows