原文:[mysql] Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'loser.tank_admin.login_ip' which is not functionally dependent on columns in GROUP BY clause; this is

执行SQL: SELECT login name,login ip,sex FROM tank admin GROUP BY login name 时抛出异常。 这个sql语句违背了sql mode only full group by 。 先看看这个sql mode only full group by是个什么意思: 摘自官网文档 ONLY FULL GROUP BY Reject querie ...

2016-04-26 06:53 1 20543 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM