Professional Documents
Culture Documents
Eliminar Multiples Registros
Eliminar Multiples Registros
v_batch_size CONSTANT NUMBER := 1000; -- Set the batch size (number of rows to delete
per batch)
v_total_rows NUMBER;
BEGIN
WHERE your_condition
-- Commit after each batch to release locks and manage transaction size
COMMIT;
END LOOP;
COMMIT;
EXCEPTION
ROLLBACK;
END delete_rows_in_batches;