Re: SQL for Deleting all duplicate entries

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: SQL for Deleting all duplicate entries
Дата
Msg-id dcc563d10709051230s25c80ab7lff7431c225f7ef49@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SQL for Deleting all duplicate entries  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
On 9/5/07, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> begin;
> delete from table where uid in (select * from table t1 join table t2
> on (t1.field1=t2.field1 AND t1.field2=t2.field2 AND
> t1.field3=t2.field3 AND t1.uid>t2.uid) );
> (check for dups / lost data)
> commit;


There's a bug up there ^^^

should be:

delete from table where uid in (select t1.uid from...

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

Предыдущее
От: jesse.waters@gmail.com
Дата:
Сообщение: Re: UTF8 frustrations
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: UTF8 frustrations