捕鱼达人青铜四
2022-9-1 09:23:55 发布在问答
【数据处理】 sql数据集查询
在数据集中,对表里的已有字段做操作新得到的字段,无法在sql的where条件里查询,这种情况是正常的吗?
报错信息为:   Related Query: '咖啡中国市场销售数据20220831150427-1815'   Run user: 'admin'
Caused by: java.sql.SQLException   执行SQL失败:“Column 'PR' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE  statement then 'PR' is not a column in the target table.”
WeChat7e0d097249f7dc2eb695d09905908ab0.png

最佳答案

阿姆斯特朗炮 钻石一

2022-09-01 09:23:56

………………这肯定不行了,where条件是你试题表里的字段,右边的这个字段又不是实体表的字段,你把pr改成这个REPLACE(省份, ' ','')
查看完整内容
1493
2
精彩评论2
阿姆斯特朗炮钻石一
发表于 2022-9-1 09:23:56 显示全部楼层
………………这肯定不行了,where条件是你试题表里的字段,右边的这个字段又不是实体表的字段,你把pr改成这个REPLACE(省份, ' ','')
回复

使用道具 2#

yhdata_yzm
发表于 2022-9-1 09:31:38 显示全部楼层
阿姆斯特朗炮 发表于 2022-9-1 09:27
………………这肯定不行了,where条件是你试题表里的字段,右边的这个字段又不是实体表的字段,你把pr改成 ...

回复

使用道具 3#

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
1500W

用户等你来哦

Copyright   ©2012-2025  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |《永洪社区协议》
返回顶部