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
Which data dictionary views have the information on the triggers that are available in the database?
How to fix oracle error ora-00942: table or view does not exist
How to avoid using cursors?
How subquery works in sql?
What is nosql example?
Why use stored procedures?
What makes a good primary key?
Why is %isopen always false for an implicit cursor?
How to change sql*plus system settings?
What is oracle and pl sql?
What is db journal file?
How do you exit in sql?
What is self-join and what is the requirement of self-join?
Which one is better sql or oracle?
Why do we use sql constraints? Which constraints we can use while creating database in sql?