17,086
社区成员
发帖
与我相关
我的任务
分享
update tb set GWAP= GWAP+(select GWAP from tb where HOMEAREA ='海西州' and COUNTYNAME='茫崖' ),
GJAVA= GJAVA+(select GJAVA from tb where HOMEAREA ='海西州' and COUNTYNAME='茫崖' ),
LYJ =LYJ +(select LYJ from tb where HOMEAREA ='海西州' and COUNTYNAME='茫崖' ),
PHONEZF =PHONEZF +(select PHONEZF from tb where HOMEAREA ='海西州' and COUNTYNAME='茫崖' ),
WOLX =WOLX +(select WOLX from tb where HOMEAREA ='海西州' and COUNTYNAME='茫崖' )
where HOMEAREA ='格尔木' and COUNTYNAME='茫崖'
然后
delete from tb where HOMEAREA ='海西州' and COUNTYNAME='茫崖'