update tb1 set col1 = tb2.col1
from
tb1,
tb2
where tb1.id= tb2.id and tb1.name = tb2.name
影响行数为 2980行
而我查询
select * from
tb1,
tb2
where tb1.id= tb2.id and tb1.name = tb2.name
这句为什么是 5000多行。
而更新的语句只影响 2000多行呢
from
tb1,
tb2
where tb1.id= tb2.id and tb1.name = tb2.name
影响行数为 2980行
而我查询
select * from
tb1,
tb2
where tb1.id= tb2.id and tb1.name = tb2.name
这句为什么是 5000多行。
而更新的语句只影响 2000多行呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货