4 回答

臨摹微笑
TA貢獻1982條經(jīng)驗 獲得超2個贊
通過【 DELETE FROM 表名稱 WHERE 列名稱 = 值 】的方式刪除記錄。
比如
12 | DELETE FROM Person WHERE LastName = 'Wilson' and rownum<=1; 刪除person表中,其中LastName這一列的值等于Wilson的其中一條記錄 |

慕少森
TA貢獻2019條經(jīng)驗 獲得超9個贊
1 2 3 4 5 6 7 | delete from item a where not exists (select 1 from itemactivitydetail b where b.lngitemid = a.lngitemid) or not exists (select 1 from purchaseorderdetail c where c.lngitemid = a.lngitemid);
commit; |
- 4 回答
- 0 關(guān)注
- 596 瀏覽
添加回答
舉報
0/150
提交
取消