निम्न त्रुटि प्राप्त:चयन सूची ग्रुप में BY खंड नहीं है और nonaggregated कॉलम होता है
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'world.country.Code' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
जब निम्न क्वेरी चल:
select countrylanguage.language, country.code, sum(country.population*countrylanguage.percentage/100)
from countrylanguage
join country on countrylanguage.countrycode = country.code
group by countrylanguage.language
order by sum(country.population*countrylanguage.percentage) desc ;
MySQL दुनिया परीक्षण डेटाबेस (http://dev.mysql.com/doc/index-other.html) का उपयोग करना। कोई विचार नहीं कि यह क्यों हो रहा है। वर्तमान में MYSQL 5.7.10 चल रहा है।
कोई विचार ??? : ओ
आप 'ONLY_FULL_GROUP_BY' विकल्प होता है सक्षम, जो 'GROUP BY' के बारे में MySQL के आराम से नियमों को हटा देता है। – Barmar
उस विकल्प के लिए डिफ़ॉल्ट MySQL 5.7 में बदल गया। – Barmar