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 on delete restrict?

0 Answers  


Can you create a table with Primary Key not as the clustered index.

2 Answers   CGI,


what is self join and what is the requirement of self join? : Sql dba

0 Answers  


what is the difference between truncate and drop statements? : Sql dba

0 Answers  


function can return value ,procedure also return value through out parameter then what is the difference?

3 Answers   3i Infotech,


What's the difference between a primary key and a clustered index?

0 Answers  


What is cursor status?

0 Answers  


What is trigger with example?

0 Answers  


Define SQL and state the differences between SQL and other conventional programming Languages?

0 Answers  


what is self-join? : Sql dba

0 Answers  


Differentiate between pl/sql and sql?

0 Answers  


Why is sharding used?

0 Answers  


Categories