34,576
社区成员
发帖
与我相关
我的任务
分享
select count(*),c1
from table
group by c1
select count(*) , c1 from table where c1 between 'A' and 'B' group by c1
select count(*) , c1 from table where c1 between A and B group by c1
SELECT c1,COUNT(*) AS cnt
FROM [table]
WHERE c1 BETWEEN 'A' AND 'B'
GROUP BY c1