当我尝试以下查询时,零行受到影响。有人可以帮我解决这个问题吗?
UPDATE PLAN
SET PLANID = (SELECT PLANID FROM MODE WHERE [NAME]='Sam')
WHERE CUSTOMERID IN (SELECT CUSTOMERID FROM ENTITYCUSTOMER WHERE EMPID = 707)
(SELECT PLANID FROM MODE WHERE [NAME]='Sam')
将返回一个代码
(SELECT CUSTOMERID FROM ENTITYCUSTOMER WHERE EMPID = 707)
可能返回多个值。
请帮助需要解决方案。谢谢