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
Does truncate remove indexes?
What are the two types of cursors in pl sql?
How many types of triggers are there in pl sql?
What is sql injection vulnerability?
what is acid property in database? : Sql dba
How to avoid duplicate records in a query?
What is the difference between microsoft access and sql server?
What is sqlca in powerbuilder?
How do I save the results of sql query in a file?
what is clause? : Sql dba
How do I tune a sql query?
Name three sql operations that perform a sort.
What are the parts of a basic sql query?
Can we commit inside a trigger?
How to run pl sql program in mysql?