SQL各种语(持续更新)

--通过分组查询,并查询各个组下面的数据数量
SELECT cord,COUNT(*) AS s FROM View_QualityPolicy GROUP BY cord ORDER BY s DESC

 

posted @ 2018-05-04 11:02  紫晶城  阅读(105)  评论(0编辑  收藏  举报