查询MySQL某字段相同值得重复数据
1.先查询重复的id:
SELECT book_id,COUNT(*) AS COUNT FROM xs_book_source WHERE site_id=5 GROUP BY book_id HAVING COUNT>1;
2.在查看详细信息:
SELECT * FROM xs_book_source WHERE book_id=120
3.删除或者修改操作
1.先查询重复的id:
SELECT book_id,COUNT(*) AS COUNT FROM xs_book_source WHERE site_id=5 GROUP BY book_id HAVING COUNT>1;
2.在查看详细信息:
SELECT * FROM xs_book_source WHERE book_id=120
3.删除或者修改操作