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='')
Answer Posted / 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 View All Answers
What is difference between inner join and self join?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
How do I remove all records from a table?
Can we join two tables without common column?
Can we debug stored procedure?
Which is better varchar or nvarchar?
Do foreign keys improve performance?
List the various privileges that a user can grant to another user?
Is pl sql better than sql?
What are stuff and replace function?
How do I view a sql trace file?
Explain table and field in sql?
how to include character strings in sql statements? : Sql dba
Is sql a oracle?
How do you run a query?