Teradata 中获取列参数不存在错误
update t1
from
table1 t1,
table2 t2
set
t1.active_ind=0,
t1.row_status_cd='L'
where
t2.col1
is NULL
尽管这些字段在 t1 中可用,但 Teradata SQL 中出现“列/参数表 1.t1 不存在”错误。有人可以帮我解决这个问题吗?
update t1
from
table1 t1,
table2 t2
set
t1.active_ind=0,
t1.row_status_cd='L'
where
t2.col1
is NULL
Getting "Column/ parameter table 1.t1 doesnt exists" error in Teradata SQL though those fields are available in t1 . can anybody help me to resolve this please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您只需更新 table1,因此不需要在 tne
SET
中的列名之前添加 t1,这就是您收到错误的原因。但 table1 和 table2 之间不应该存在关系,但一如既往,您应该在使用它之前先测试它,wquery 可能会产生不可预见的副作用
As you only have to update table1 you don't need the t1 before the columnnames in tne
SET
, that is why you get the error.but shouldn't there be a relation between table1 and table2, but as always you should test this first before using it, that wquery could have unforseen side effects