MYSQL之错误Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
select@@global.sql_mode;only_full_group_by:使用这个就是使用和oracle一样的group规则,select的列都要在group中,或者本身是聚合列(SUM,AVG,MAX,MIN)才行,其实这个配置目前个人感觉和distinct差不多的,所以去掉就好[mysqld]下sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE