Re: Delete Duplicates with Using

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Delete Duplicates with Using
Date: 2017-10-14 07:32:39
Message-ID: 1507966359715-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

DELETE FROM table_with_duplicates AS T1 USING table_with_duplicates AS T2
WHERE
T1.column_1 = T2.column_1
AND T1.column_2 = T2.column_2
AND T1.column_3 = T2.column_3
AND T1.row_num < T2.row_num

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2017-10-14 14:23:34 Re: time series data
Previous Message legrand legrand 2017-10-14 07:18:13 Where to find development builds of pg for windows