DROP TABLE IF EXISTS tmp;create table tmp like mytable; ALTER TABLE tmp ADD UNIQUE INDEX(text1, text2, text3, text4, text5, text6); insert IGNORE into tmp select * from mytable; delete from mytable where id not in ( select id from tmp); DROP TABLE IF EXISTS tmp;
![Zelengora, Bosnia and Herzegovina Zelengora, Bosnia and Herzegovina](https://www.mehic.info/wp-content/uploads/2017/06/IMG_20161119_153522-e1497739138486.jpg)