StackOverflow 文档 MySQL 教程 GROUP BY GROUP BY 使用 SUM 函数 GROUP BY 使用 SUM 函数 Created: November-22, 2018 SELECT product, SUM(quantity) AS "Total quantity" FROM order_details GROUP BY product; GROUP BY 使用 COUNT 函数具有 AGGREGATE 功能的 GROUP BY