DB2 多表更新sql


因为与sql server的语法不一致,经常忘记,故记录在此。参考语法如下:
Update R_Lice_LicenseCollect b
set (b.gtc
,b.gyc
,b.jtc
,b.hzc
,b.yxc
,b.gfc
,b.grc
,b.hhc
,b.wzc) = (select
a.gtc
,a.gyc
,a.jtc
,a.hzc
,a.yxc
,a.gfc
,a.grc
,a.hhc
,a.wzc from tmpLicenseOut a
where b.City_Code = a.RegionCode)
where b.Year = '2005' and b.Quarter = '3';


你可能感兴趣的:(db2,多表更新sql)