select it.id, it.name, it.brand, it.start_time, it.end_time, it.status, count(ip.id) as totalPeopleNum
from invitation it
left join invitation_role ir on it.id = ir.invitation_id and ir.is_delete = 0
left join invitation_people ip on ir.id = ip.role_id and ip.is_delete = 0
where
it.is_delete = 0
group by it.id
order by it.create_time desc
SQL 错误 [1055] [42000]: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘auto_show.it.brand’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
我把生产和测试的所有配置都导出来对比了一下,配置没啥区别