CAPTURING THE OUTPUT IN INSERT INTO SELECT AND DELETE
Uday_NSep 23 2010 — edited Sep 23 2010Hi All,
insert into employee_history_arch select * from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
commit;
delete from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
commit;
I have to capture both the output of insert and delete sql query and have to compare both the values for validation. I should not use select count(*) before the delete statement.I shud exactly capture the output..How to do?Please help me