warning...
before you drop any tables, either do a mysqldump and backup the data first or just make very sure that all the data that you need is in the temp table before dropping the users.
or before you do anything, just duplicate the table...
create table users_bak as select * from users;
Mark wrote:
Here\'s what I do:
Say your table is called users with the fields id, fname, lname, address
create table temp as select distinct fname, lname, address from users;
(all fields but the id which will make them all distinct if included)
drop table users;
create table users as select * from temp;
alter table users add id int not null auto_increment primary key;
finished!!