Create a procedure to delete certain records from a table
and display the total number of records deleted in this
process. (Condition for deletion can be of ur choice, for
instance delete all records where eid='')

Answers were Sorted based on User's Feedback



Create a procedure to delete certain records from a table and display the total number of records ..

Answer / manas

create or replace procedure proc_name(noofcount out number ) is
Begin
Delete from tes_tabt;
noofcount := sql%rowcount;
End

Is This Answer Correct ?    7 Yes 1 No

Create a procedure to delete certain records from a table and display the total number of records ..

Answer / mathivanan

Create or replace procedure delete_rec_cnt is
begin
delete from MY_TABLE;
dbms_output.put_line(sql%rowcount);
end;

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

what is data integrity

3 Answers   Fidelity, TCS,


What is the use of sql trace?

0 Answers  


Define union, minus, union all, intersect ?

0 Answers  


Write a sql query to find the names of employees that begin with ‘a’?

0 Answers  


What is a cursor for loop ?

4 Answers  






What is the difference between delete, truncate and drop command?

0 Answers  


How many types of primary keys are there?

0 Answers  


Maximum how many triggers can we use in trigger and How to find out how many records it fetched.

1 Answers   TCS,


what is autonomouse transaction?

3 Answers   Oracle,


What are all different types of collation sensitivity?

0 Answers  


How do I save a stored procedure?

0 Answers  


What are hotfixes and patches?

0 Answers  


Categories