原因可能是因为TEMP_TABLE中有重复的NUM_COL=50的记录。

解决方案 »

  1.   

    怎么会是2呢SQL> select * from temp_table;   NUM_COL
    ----------
            50
            50
            50
            40
    SQL> select * from temp_table1;   NUM_COL
    ----------
            40
    SQL> select * from temp_table
      2  minus
      3  select * from temp_table1;   NUM_COL
    ----------
            50
    SQL> select count(*) from
      2  (select * from temp_table
      3  minus
      4  select * from temp_table1);  COUNT(*)
    ----------
             1
    SQL> insert into temp_table1 values('50');已创建 1 行。SQL> select * from temp_table1;   NUM_COL
    ----------
            40
            50SQL> select * from temp_table
      2  minus
      3  select * from temp_table1;未选定行
      

  2.   

    我明白了,是有一个Num_col等于50的重复记录,是我看错了,我以为剩下的两个是重复记录(但实际上不是)。
    谢谢两位的帮忙。