i am having a mysql table named list which contains only one column named word. In this name column i am having english words. There are around 1 lakh records. I formed these column by joining different tables.
Now the problem is i am having some duplicate words and i need to delete it.
I tried
insert into new_table select distinct word from list;
contents are being copied to another table but still the duplicate exits
Then i tried to print length of the word using php.. 'aardvark' is present two times in my table. printing the length of this word in php, for one record it is showing that length is 8 and for another record of 'aardvark' is of length 9.
i used
update list set word = trim(word);
no word contained blank spaces in front or end.. How the same word 'aardvark' is of two different length. how to avoid duplicates