sql 查询哪些字段重复

select count(1),content_id,keyword_id from tb_content_keyword_relation group by content_id,keyword_id having count(1)>1 order by count(1) desc

  

猜你喜欢

转载自www.cnblogs.com/lingduqianli/p/9399748.html
今日推荐