错误代码: 1054 Unknown column #39;t.createUsrId#39; in #39;group statement#39;
生活随笔
收集整理的這篇文章主要介紹了
错误代码: 1054 Unknown column #39;t.createUsrId#39; in #39;group statement#39;
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、錯誤描寫敘述
1 queries executed, 0 success, 1 errors, 0 warnings查詢:select count(t.id),t.`createUserId` from t_acs_ints t where t.id not in (SELECT t1.ionId FROM t_acs_cont t1, t_ac...錯誤代碼: 1054 Unknown column 't.createUsrId' in 'group statement'運行耗時 : 0 sec 傳送時間 : 0 sec 總耗時 : 0 sec
2、錯誤原因
? ? ?在SQL語句分組時。因為粗心導致字段少寫一個字母,導致該字段無法識別(即在表中不存在),致使報錯;數據庫表的字段名為createUserId,而在group by后面寫成了createUsrId
3、解決的方法
? ? ?將group by后字段名改動成group by t.createUserId
總結
以上是生活随笔為你收集整理的错误代码: 1054 Unknown column #39;t.createUsrId#39; in #39;group statement#39;的全部內容,希望文章能夠幫你解決所遇到的問題。