本帖最后由 wangyanliang6 于 2009-10-05 10:17:31 编辑

解决方案 »

  1.   


    用pl/sql developer 或者 Toad, 里面有比较的功能.. 在界面上点点就ok了..
      

  2.   

    写个过程
    select count(1) into v_count from tableA a where not exists(
      select 1 from tableB where col1=a.col1 and ....);
    if v_count>0 then 
    ....
      

  3.   


    想比较的是所有的项目, 每个项目都列出来, 太麻烦了  a.1 = b.1 a.2 = b.2 ........a.n = b.n
      

  4.   


    我的意思是说, 我要check的表, 有很多 , 
    tableA  tableB
    tableA1  tableB1
    tableA2  tableB2
    我也想做一个共同, 只传表名称, 但是还是需要比较每个项目的值