close

 

 

表里有这样的记录:
1 2 3 4 5 6
1 2 3 4 5 7
1 2 3 4 5 8
1 3 5 6 8 9


然后我想過濾掉最後一行

結果:
1 2 3 4 5 6
1 2 3 4 5 7
1 2 3 4 5 8

 

 

************************
方法:

 

delete from emp_test where exists (select * from emp_test where rownum<5
minus
select * from emp_test where rownum<4);

 

透過 exists 刪除裡面的子查詢

 

 

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 to52016 的頭像
    to52016

    Eason [資料科學//Python學習/資料庫] & [拍片&剪片]

    to52016 發表在 痞客邦 留言(0) 人氣()