Answer Posted / nashiinformaticssolutions
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 parts of a basic sql query?
How do you modify a column in sql?
What are packages in pl sql and also explain its advantages?
What is delimiter in pl sql?
What do we need to check in database testing?
Is time a data type in sql?
What is nosql vs sql?
How do you use a while loop in pl sql?
What is difference between sql and excel?
How do I remove sql developer from windows 10?
What are different types of statements supported by sql?
What is the use of index in sql?
Explain the order of sql statement execution?
What is rename command in sql?
What is composite primary key in sql?