1、在电脑上打开一张EXCEL表格,可以看到该表格中有多个数据记录。
2、选中表格第一行的表头,点击菜单栏的数据,然后找到数据工具下的筛选按钮点击。
3、可以看到第一行的表头有了下拉箭头,点击下拉箭头可以看到多个ID号码。
4、如需要查询ID为31的记录,则勾选31后点击确定按钮。
5、即可看到EXCEL表格中已经筛选出来ID为31的全部记录了。
6、此时在EXCEL的最下方即可看到在1064条记录中找到15个ID为31的数据记录了。
select count(*) from Mytable
select count(mid), mid from Score1 group by mid
select id, count(*) from 表 where id=.. group by id
select id, Count(*) from tb group by id having count(*)>1
select*from(select count(ID) as count from table group by ID)T where T.count>1