hi...
i have the table values with duplicate records, i want to delete the duplicate records, How to delete the duplicate records? I need the query to delete the duplicate rows
Example:
id ---- name
1 ---- xxxx
2 ---- yyyy
1 ---- xxxx
3 ---- zzzz
3 ---- zzzz
i want to delete the duplicate rows from the above table. Table name is sample_table.
Thanks
S.Ashokkumar
Hi Ashok
The DuplicateRecords are deleted by using this Query
DELETE FROM table_name WHERE id=1 LIMIT 1; same as id3.
To avoid the duplicate records set primary key to your id field.
I think it is useful to you
Thanks
Sang