【mysql】 mysql having count 的使用


示例使用

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

相关