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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值