摘要: 分组 GROUP BY GROUP BY位于WHERE之后,ORDER BY 之前 在产品表中根据供应商ID(vend_id)进行分组 SELECT vend_id, COUNT(*) AS num_prods FROM products GROUP BY vend_id; 过滤分组 1.WHERE 阅读全文
posted @ 2022-07-11 22:35 cnhkzyy 阅读(187) 评论(0) 推荐(0) 编辑