Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Does user triggers have entry for trigger with compilation errors?

0 Answers  


What is the use of nvl function?

0 Answers  


What are the rules to be applied to nulls whilst doing comparisons?

0 Answers  


Explain the uses of control file.

0 Answers  


Why do we use partitions in sql?

0 Answers  


Is nosql relational?

0 Answers  


How do you determine the current isolation level? : Transact sql

0 Answers  


How to count the no of records of a table without using COUNT function?

11 Answers   TCS, Tesco,


What is the difference between SQL table and the PLSQL table?

3 Answers   Mastek,


How do I create an index in word?

0 Answers  


How to get unique records from a table?

0 Answers  


how to get a list of all tables in a database? : Sql dba

0 Answers  


Categories