📜  从子查询 oracle 中删除 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:07.244000             🧑  作者: Mango

代码示例1
DELETE FROM my_table;        -- all rows, commit needed
TRUNCATE TABLE my_table;    -- all rows, no possible rollback
DELETE FROM my_table WHERE my_id = 12345;
DELETE FROM my_table WHERE my_id IN (SELECT id2 FROM my_table2);
COMMIT;        -- don't forget it...