本帖最后由 WZHYBW 于 2012-03-02 21:15:42 编辑

解决方案 »

  1.   

    update A
    set A.是否匹配 = case when B.姓名 = A.姓名 then '匹配' else '不匹配' end
    from A inner join B on B.身份证 = A.身份证
    where A.是否匹配 = '待核实'
      

  2.   

    update A
    set A.是否匹配 = case when B.姓名 = A.姓名 then '匹配' else '不匹配' end
      

  3.   

    Upate A
    set A.是否匹配=case when A.姓名=B.姓名 then N'匹配' else N'不匹配' end
    from A inner join B on A.身份证=B.身份证 where A.是否匹配=N'不匹配'