update ysc_xmzl a set a.groupid=(select b.groupid from xm_project b where a.xmdm=b.project) 不知道搂住到底更新那个,这样写应该没问题!
oracle没有sqlserver中的update from语句 你只能采用楼上的方式或者是用视图更新的方式 update (select b.groupid groupidB,a.groupid groupidA from ysc_xmzl a,xm_project b where b.project_code=a.xmdm) set groupidB=groupidA
不知道搂住到底更新那个,这样写应该没问题!
你只能采用楼上的方式或者是用视图更新的方式
update (select b.groupid groupidB,a.groupid groupidA
from ysc_xmzl a,xm_project b
where b.project_code=a.xmdm)
set groupidB=groupidA