在执行 update t1 set t1.FHeadSelfJ0166=t2.FBillNo from icmo t1 left join SEOrder t2 on t1.FOrderInterID=t2.FinterID where t1.FSourceEntryID!=0 and t1.FHeadSelfJ0166 is null 语句时提示:
服务器: 消息 512,级别 16,状态 1,过程 JIEAN,行 7
子查询返回的值多于一个。当子查询跟随在 =、!=、<、<=、>、>= 之后,或子查询用作表达式时,这种情况是不允许的。
语句已终止。
在执行 update t1 set t1.FHeadSelfJ0166=t2.FBillNo from icmo t1 left join SEOrder t2 on t1.FOrderInterID=t2.FinterID where t1.FSourceEntryID!=0 and t1.FHeadSelfJ0166 is null 语句时提示: 服务器: 消息 512,级别 16,状态 1,过程 JIEAN,行 7 子查询返回的值多于一个。当子查询跟随在 =、!=、<、、>= 之后
update t1
set t1.FHeadSelfJ0166=t2.FBillNo
from icmo t1 , SEOrder t2
where t1.FSourceEntryID!=0 and t1.FHeadSelfJ0166 is null
and t1.FOrderInterID=t2.FinterID