12.20.1 Aggregate Function Descriptions
12.20.3 MySQL Handling of GROUP BY
ONLY_FULL_GROUP_BY
快速上手
新建一张 sku 表并插入一些数据
DROP TABLE IF EXISTS `sku`;
CREATE TABLE `sku` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`goods_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品id',
`sku_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '规格名称',