Subject | Re: [firebird-support] removing duplicate records |
---|---|
Author | Milan Babuskov |
Post date | 2004-06-29T22:10:32Z |
alan davies wrote:
insert into temporary_table
select distinct col1, col2, col3, ...etc
from table_with_duplicates;
Then just empty the original table, and import the records back:
delete from table_with_duplicates;
insert into table_with_duplicates
select * from temporary_table;
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net
> Can anyone help with removing a lot of duplicate records that have beenCreate some temporary table with same structure, and do
> imported from an external system.
insert into temporary_table
select distinct col1, col2, col3, ...etc
from table_with_duplicates;
Then just empty the original table, and import the records back:
delete from table_with_duplicates;
insert into table_with_duplicates
select * from temporary_table;
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net