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

What is AUTH_ID and AUTH_USER in pl/sql ?

0 Answers   INDUS,


what is the difference between undefined value and null value? : Sql dba

0 Answers  


What are the types of triggers ?

26 Answers   Aspire, BirlaSoft, TCS,


Is primary key is clustered index?

0 Answers  


What is bind reference and how can it be created?

0 Answers  


What are the popular database management systems in the it industry?

0 Answers  


How much does sqlite cost?

0 Answers  


What is a mutating table and a constraining table?

0 Answers  


what is the purpose of update command in oracle?

7 Answers   MBT,


What are the different parts of a package?

0 Answers  


How do you identify a primary key?

0 Answers  


What are dml commands?

0 Answers  


Categories