mysql 在非严格模式下使用group by
SELECT * from table GROUP BY table_name; 取所有字段不会报错
mysql 在非严格模式下使用group by 如果还想取别的字段;
SELECT GROUP_CONCAT(distinct source) as source, table_name, sum(count) as total from table GROUP BY table_name; -- 使用 GROUP_CONCAT函数 source 就是别的字段
浙公网安备 33010602011771号