| От | CSN |
|---|---|
| Тема | Re: Finding (and deleting) dupes in relation table |
| Дата | |
| Msg-id | 20050922233554.14458.qmail@web52902.mail.yahoo.com обсуждение исходный текст |
| Ответ на | Finding (and deleting) dupes in relation table (CSN <cool_screen_name90001@yahoo.com>) |
| Список | pgsql-general |
Nevermind, figured it out: select distinct on (table1id, table2id) * into temp from table3; delete from table3; insert into table3 select * from temp; --- CSN <cool_screen_name90001@yahoo.com> wrote: > I have a table that relates id's of two other > tables: > > table1id, table2id > > Dupes have found their way into it (create unique > index across both fields fails). Is there a quick > and > easy way to find and delete the dupes (there are > tens > of thousands of records)? > > Thanks, > CSN > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера