查询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.删除或者修改操作 

 

posted @ 2018-04-26 17:26  python许三多  阅读(651)  评论(0编辑  收藏  举报