本文介绍了错误360:无法修改子查询中使用的表或视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

INFORMIX-SE 7.32:

INFORMIX-SE 7.32:

尝试执行以下语句时出现错误360:

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;

有什么想法吗?

推荐答案

您正在尝试UPDATEtransaction,并使用SELECT MAX通过同一查询从同一表中读取.你不能那样做.

You're trying to UPDATE the table transaction and read from the same table using SELECT MAX with the same query. You cannot do that.

子查询限制

这篇关于错误360:无法修改子查询中使用的表或视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 03:03