Re: Removing duplicate rows in table - Mailing list pgsql-general

From Rich Shepard
Subject Re: Removing duplicate rows in table
Date
Msg-id 8af99ac1-1ca6-e683-ca8a-1b35bad8ef3e@appl-ecosys.com
Whole thread Raw
In response to Re: Removing duplicate rows in table  (Christophe Pettus <xof@thebuild.com>)
List 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



pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Removing duplicate rows in table
Next
From: Rich Shepard
Date:
Subject: Re: Removing duplicate rows in table