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


Please Help Members By Posting Answers For Below Questions

Name the different types of indexes in sql and define them.

568


Why trigger is used in sql?

525


What is a sql schema used for?

544


What is the difference between subquery and correlated query?

528


Can we join two tables without common column?

512






Does truncate table reset auto increment?

528


Why do we go for stored procedures?

509


What are the different types of joins in sql?

579


Define sql delete statement.

561


What do you think about pl/sql?

529


What are the benefits of stored procedures?

530


What is an oracle stored procedure?

586


What are commit, rollback, and savepoint?

569


what is the command line end user interface - mysql? : Sql dba

501


Define concurrency control. : Transact sql

582