【mysql】 mysql having count 的使用

 

示例使用

# 查询student表中 stu_id重复的记录
select  count(stu_id) as idcount , stu_id from student   group by stu_id having idcount > 1

 

posted @ 2022-05-26 11:07  Angel挤一挤  阅读(1731)  评论(0编辑  收藏  举报