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...

What is a stored procedure ?

Answer Posted / glibwaresoftsolutions

A stored procedure is a precompiled block of PL/SQL code stored in the database, which can be executed to perform a specific task.
Syntax Example:
CREATE OR REPLACE PROCEDURE IncreaseSalary(emp_id NUMBER, increment NUMBER) AS
BEGIN
UPDATE employees
SET salary = salary + increment
WHERE id = emp_id;
END;
To execute:
EXEC IncreaseSalary(101, 500);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main features of cursor?

1071


Is pl sql useful?

992


What is the difference between sql and t sql?

1034


What are triggers and its types?

1062


What are the types of dbms?

973


What are the types of triggers in sql?

1089


how to decrement dates by 1 in mysql? : Sql dba

1018


What is asqueryable?

969


What is the difference between explicit and implicit cursors in oracle?

1069


What is pragma in pl sql?

1110


What is percent sign in sql?

1283


How do you update a sql procedure?

1029


What is difference between left and right outer join?

987


How do I view a sql trace file?

1027


Is sqlite thread safe?

1048