欢迎投稿

今日深度:

错误代码: 1054 Unknown column 't.createUsrId' i

错误代码: 1054 Unknown column 't.createUsrId' in 'group statement',1054t.createusrid


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

版权声明:本文为博主原创文章,未经博主允许不得转载。

www.htsjk.Com true http://www.htsjk.com/shujukunews/9529.html NewsArticle 错误代码: 1054 Unknown column t.createUsrId in group statement,1054t.createusrid 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 (S...
评论暂时关闭