Bike Path
Friday, September 14, 2012
MYSQL: remove duplicates from table
Here is one line to remove duplicate records from database. I just run similar query for 6M records.
ALTER IGNORE TABLE mytable ADD UNIQUE INDEX(user_id,name);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment