一、sql server數據庫寫法:
update a set a.ksgmm=b.ksgmm,a.ksgm=b.ksgm,a.scztm=b.scztm,a.sczt=b.sczt from landsde.sde.jszb a,kyqcldb.dbo.kcl_ksjj b where a.nd=b.nd and a.kqbh=b.kqbh and a.djflbh =b.djflbh
其中landsde.sde.jszb、kyqcldb.dbo.kcl_ksjj是不同數據庫下的不同數據表
二、oracle寫法
update usertab a set (a.name, a.age)= (select b.name, b.age from member b where a.id=b.id)
