a.bknbcode_id=b.leibie and a.stuid_actived=1 and area!=20
and left(b.sfzh,6)=left(a.id_card,6)
and len(b.sfzh)=15 and len(a.id_card)=18
and substring(a.id_card,9,6)=substring(b.sfzh ,7,6)
所影响的条数是956行
update result set result.sign=1 from forums_ksbm a, result b where
a.bknbcode_id=b.leibie and a.stuid_actived=1 and area!=20
and left(b.sfzh,6)=left(a.id_card,6)
and len(b.sfzh)=15 and len(a.id_card)=18
and substring(a.id_card,9,6)=substring(b.sfzh ,7,6)
所影响的条数是945条
为什么会这样呢?
谢谢