我正在尝试更新我创建的虚拟表,但是当我在在线编辑器中运行它时会抛出错误:
Error 1: could not prepare statement (1 no such table: Table_Ex)
如果我给出一个select语句而不是更新,它就可以了。 请查看代码。
with Table_EX as
(select C.CustomerID, C.Country, O.CustomerID, O.ShipperID
from Customers C Inner Join Orders O on C.CustomerID = O.CustomerID
where C.CustomerID = '4')
update Table_EX
SET
Country = 'INDIA'
,ShipperID = '420';