本帖最后由 zlzry88888 于 2010-08-10 08:36:54 编辑

解决方案 »

  1.   

    两个库中相应的数据表的名字呢?以table1和table2代替update table A1.table1 t1, A2.table2 t2 set t2.djxm = t1.djxm where t1.sfz = t2.sfzh and t1.xm = t2.xminsert into A2.table2 (sfzh, xm, djxm) select t1.sfz, t1.xm, t1.djxm from A1.table1 t1, A2.table2 t2 where t1.sfz <> t2.sfzh and t1.xm <> t2.xm
      

  2.   

    我这里 不用写判断语句判断了吗  直接写sql语句就行吗?