I have a table name as bursary,
there is duplicate entries in the username, how can I delete the duplicate entries.?
here is my bursary table,
UserID UserName
1 ca11074
2 ca11074
3 cb56456
4 cb56456
I need to delete duplicate entries.
here I tried but unfortunately not working.
$sql =
"DELETE FROM bursary
WHERE UserName IN (SELECT UserName FROM bursary (COUNT(*) > 1)";
$result=mysql_query($sql);