我正在尝试从数据库表中选择所有列,并将其分组为一个特殊列:
SELECT * FROM `table` GROUP BY `email`
但是我收到了一个错误:
#1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'gassupplytool.ggg_nitrogen.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
我已经这样做了多年,没有遇到任何问题。在这种情况下,我正在使用外部服务器。有人可以帮忙吗?