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