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
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 |
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 |
what is data integrity
What is the use of sql trace?
Define union, minus, union all, intersect ?
Write a sql query to find the names of employees that begin with ‘a’?
What is a cursor for loop ?
What is the difference between delete, truncate and drop command?
How many types of primary keys are there?
Maximum how many triggers can we use in trigger and How to find out how many records it fetched.
what is autonomouse transaction?
What are all different types of collation sensitivity?
How do I save a stored procedure?
What are hotfixes and patches?