表1
表2
我想把表二中对应的cityid插入到表1中的cityid中,怎么办,求解
------解决思路----------------------
update tb1 set cityid=b.cityid2 from 表1 as tb1 left join 表2 b on tb1.snumber=b. snumber
表2
update tb1 set cityid=b.cityid2 from 表1 as tb1 left join 表2 b on tb1.snumber=b. snumber