原文:[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