赞
踩
mysql5.7使用group by出现错误:
[Err] 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.score.c_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
phpstudy解决方法:在phpstudy的mysql.ini文件中添加
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。