我有一个在MySQL 5.6上运行良好的存储过程。在最近的服务器迁移期间,我们升级到MySQL 5.7.19。我的存储过程现在抛出错误:
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated columnutility-monitor.daily_readings.building_id' which is not functionally dependent on columns in GROUP BY