问题: mysql 语句查询时: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: In aggregated query without GROUP BY, expression #25 of SELECT list contains nonaggregated column ‘nybx.l.PUSH_TIME’; this is incompatible with sql_mode=only_full_group_by 错误
解决办法下 my.cnf(windows 下是 my.ini)加以下行
[mysqld]
sql_mode=’STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,
NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,
NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’