Re: Removing duplicate rows in table

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Removing duplicate rows in table
Date: 2024-09-10 15:33:46
Message-ID: 8af99ac1-1ca6-e683-ca8a-1b35bad8ef3e@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 10 Sep 2024, Christophe Pettus wrote:

> If you don't mind taking the time to swap tables, you can always do an
> INSERT ... SELECT DISTINCT <fields> into a new table, and then swap it
> with the existing table.

Christophe,

I'll make the proj_nbr table the PK then do as you recommend.

Thank you,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2024-09-10 15:35:48 Re: Removing duplicate rows in table
Previous Message Rich Shepard 2024-09-10 15:32:34 Re: Removing duplicate rows in table