select country.continent,round(avg(city.population),0) as c
from city,country
where city.countrycode = country.code;
我已經使用這個查詢,但我得到這個錯誤錯誤1140我的查詢
ERROR 1140(42000)位於第1行:在彙總查詢,而GROUP BY,SELECT表達#1列表包含非聚集列'run_2sryibds0p4.country.continent';這是不符合sql_mode = only_full_group_by
請幫助我正確的解決方案和解釋請。
[閱讀手冊](https://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html) – waka
一點幫助請用正確的查詢 –