| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Paul DuBois | Date: | September 19 2002 2:10pm |
| Subject: | Re: insert and deletind dublicating | ||
| View as plain text | |||
At 12:06 +0300 9/19/02, Savaidis wrote: >Hello! > >I have to add a .sql file from MySQL-Front > >(insert into mytable ('0','asdf',ecc)) > >that containts some dublicates in the unic key. That sounds self-contradictory. > >How can I do this and later to delere the dublicate records? > >The unic key has 3 string fields segments. You can either: - Create the table, including the unique index, and then load it with either INSERT IGNORE or REPLACE - Create the table, but do not place any index on it yet. Then load then table. Then add the index using ALTER IGNORE TABLE ... rather than ALTER TABLE ... to tell it to ignore (and delete) duplicate records when creating the index. > >Thanks! > >Makis
| Thread | ||
|---|---|---|
| • Trying to get openssl working with MySQL 4.0.3-beta | Matthew Scarrow | 3 Sep |
| • secure mySQL connection | Ben Joyce | 3 Sep |
| • speeding up by spliting tables? | Savaidis | 14 Sep |
| • Re: speeding up by spliting tables? | peter.brawley | 14 Sep |
| • Re: speeding up by spliting tables? | Paul DuBois | 14 Sep |
| • insert and deletind dublicating | Savaidis | 19 Sep |
| • re: insert and deletind dublicating | Victoria Reznichenko | 19 Sep |
| • Re: insert and deletind dublicating | Paul DuBois | 19 Sep |
| • RE: insert and deletind dublicating | Savaidis | 19 Sep |
| • RE: insert and deletind dublicating | Paul DuBois | 19 Sep |
| • RE: insert and deletind dublicating | Savaidis | 19 Sep |
