找不到SQL Progress列

时间:2017-07-23 00:03:08

标签: sql openedge progress-db

我有这个问题:

[MERANT][ODBC PROGRESS driver][PROGRESS]Column not found/specified (7520)

出于某种原因,我在运行查询时遇到此错误:

错误消息

WHERE (spechist."photocard-display"=yes) AND (spechist."rec-type"='I') and (spechist.item='111')

当我从查询中删除以下内容时,它运行正常:

date_col = [col for col in list(df) if re.search('DATE', col)]
dt_col = [col for col in list(df) if re.search('_DT', col)]
ts_col = [col for col in list(df) if re.search('TIMESTAMP', col)]
dt_cols = date_col + dt_col + ts_col

for col in list(df):
    if col in dt_cols:
        col = pd.to_datetime(col)

我知道这些列在表中。我做错了什么?

由于

1 个答案:

答案 0 :(得分:0)

没有看到你的架构,我无法确定,但这里有一些事情要尝试。

  1. 大写是否正确?
  2. 您是否需要使用完整的表名PUB.spechist
  3. 它是否适用于where子句中的这三个限制中的任何一个?尝试一次添加一个,看看哪个停止执行。