0
select host_city,max(city) as res
from (
select count(host_city) as city
from match_results
group by host_city
) a
LIMIT 0, 1000
我收到此错误,当列表host_city
确实存在于我的表中。错误在mysql查询中。需要获得城市名称和最大匹配在该城市中播放
错误代码:1054.'字段列表'中的未知列'host_city'。
我在mysql中
我不确定最后一个'a',它是什么? – user10089632
@ user10089632你认为它可能是什么? – Strawberry
@visible请参阅https://meta.stackoverflow.com/questions/333952/why-should-i-provide-an-mcve-for-what-seems-to-me-to-be-a-very-simple- sql-query – Strawberry