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
What are the main features of cursor?
Is pl sql useful?
What is the difference between sql and t sql?
What are triggers and its types?
What are the types of dbms?
What are the types of triggers in sql?
how to decrement dates by 1 in mysql? : Sql dba
What is asqueryable?
What is the difference between explicit and implicit cursors in oracle?
What is pragma in pl sql?
What is percent sign in sql?
How do you update a sql procedure?
What is difference between left and right outer join?
How do I view a sql trace file?
Is sqlite thread safe?