delete oracle sql code example
Example 1: pl sql delete from table
DELETE FROM customers
WHERE last_name = 'Smith';
Example 2: delete rows table oracle
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...