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='')

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

What is clustered and nonclustered index in sql?

982


Explain the insert into statements in sql?

1049


what are all types of user defined functions? : Sql dba

1080


What are tables and fields?

1080


What are the two virtual tables available at the time of database trigger execution?

1265


What is data definition language?

1133


what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure

2134


what does the t-sql command ident_current does? : Transact sql

1041


Can we alter stored procedure?

1039


what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

1116


Why do we need sharding?

1046


How to return multiple rows from the stored procedure?

1012


what are all the different types of indexes? : Sql dba

1101


What are different types of functions in sql?

1050


how to extract a unit value from a date and time? : Sql dba

1031