mysql 我想查前100条数据中 某值出现的次数 该怎么查?
答案:2 悬赏:0 手机版
解决时间 2021-01-29 22:20
- 提问者网友:临风不自傲
- 2021-01-29 08:04
mysql 我想查前100条数据中 某值出现的次数 该怎么查?
最佳答案
- 五星知识达人网友:逃夭
- 2021-01-29 08:31
比如 分数(score)为100的出现的次数
select count(*) as score_count from table where score=100 limit 100;
select count(*) as score_count from table where score=100 limit 100;
全部回答
- 1楼网友:白昼之月
- 2021-01-29 09:44
select * from (
select score,count(*) as cnt from table
where score=100
group by score) a
where cnt>3
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯