一、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)

 

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-08-27
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-12-08
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案