Mysql PHP MyAdmin Delete Duplicate Rows

preview_player
Показать описание
A fast and easy way to Delete duplicate rows or records. Just build the new table, Check it and then delete the old one and rename the new one. Here is the code I used in the video just edit it to meet your needs.

To answer the comment below (where I cant put a link) to see how to combine two or more tables see my video here.

CREATE TABLE new_table as SELECT * FROM cities_extended_full WHERE 1 GROUP BY city,state_code

Рекомендации по теме
Комментарии
Автор

Dude your a life saver. I hate duplicate data and forgot to set the field to unique!

roxiogamer
Автор

found your video very helpful, for my course we are to find if the song they choose to input (playlist in php but linked to phpmyadmin) is already in the playlist, any videos, links or help ? thanks,

sarahmc
Автор

Very good tutorial!!
Exactly what I needed
Thank you

GoonerMike
Автор

Yeah this video does not really address a quantity of records that reaches that scale. I hope it works for you. If you have that many records probably everything takes that long. What was your question? and what do you want help with?

lenfarneth
Автор

My table contains 163millions records and its need more than 7 hours on Xeon 8 cores with 24GB ram.

imagesbox
Автор

I made a video that explains the best way to combine tables. See the description for a link. (YT won't allow links in the comments)

lenfarneth