--更新已经存在的
update a set ClassPhyName=t.ClassPhyName
from ClassPhyName a,TmpTable b
where a.KeyName=b.KeyName--插入不存在的
insert ClassPhyName select * from TmpTable b
where not exists(
select * from ClassPhyName where KeyName=b.KeyName)
update a set ClassPhyName=t.ClassPhyName
from ClassPhyName a,TmpTable b
where a.KeyName=b.KeyName--插入不存在的
insert ClassPhyName select * from TmpTable b
where not exists(
select * from ClassPhyName where KeyName=b.KeyName)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货