I have used a mysql query to select my duplicate entries in Database.
select id,DATE_FORMAT(cu_date,'%Y-%m-%d %T'),trunk_id ,count(*) from circuit_u
WHERE DATE_FORMAT(cu_date,'%Y-%m-%d') = '2013-01-26'
group by DATE_FORMAT(cu_date,'%Y-%m-%d %T'),trunk_id
HAVING count(*) > 1;
Output:
16347 2013-01-26 01:00:00 0 2
16372 2013-01-26 01:00:00 1 2
16397 2013-01-26 01:00:00 100 2
16422 2013-01-26 01:00:00 101 2
16447 2013-01-26 01:00:00 121 2
16472 2013-01-26 01:00:00 211 2
16497 2013-01-26 01:00:00 221 2
16522 2013-01-26 01:00:00 311 2
Now I want to add another command to delete them.
I have tried with so many way but every time i failed.
Please help.