错误 360:无法修改子查询中使用的表或视图
INFORMIX-SE 7.32:
当我尝试执行以下语句时,出现错误 360:
update transaction
set transaction.colx = (select tab1.cola from tab1)
where transaction.num = (select max(transaction.num) from transaction)
and transaction.colx IS NULL;
有什么想法吗?
INFORMIX-SE 7.32:
I'm getting error 360 when I try to execute the following statement:
update transaction
set transaction.colx = (select tab1.cola from tab1)
where transaction.num = (select max(transaction.num) from transaction)
and transaction.colx IS NULL;
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在尝试
UPDATE
表transaction
,并使用带有相同查询的SELECT MAX
从同一个表中读取数据。你不能那样做。子查询限制
You're trying to
UPDATE
the tabletransaction
and read from the same table usingSELECT MAX
with the same query. You cannot do that.Subquery restrictions