标题: sql数据集查询 [打印本页] 作者: 捕鱼达人 时间: 2022-9-1 09:23 标题: 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.”
作者: 阿姆斯特朗炮 时间: 2022-9-1 09:23
………………这肯定不行了,where条件是你试题表里的字段,右边的这个字段又不是实体表的字段,你把pr改成这个REPLACE(省份, ' ','')作者: yhdata_yzm 时间: 2022-9-1 09:31