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 stored procedures in mysql?
How do I run a script in sql developer?
How do I run a sql trace?
What is composite data type in pl sql?
How is use pl and sql?
What makes a good primary key?
describe mysql connection using mysql binary. : Sql dba
What is trigger point?
What is sql dialect?
What is scope of pl sql developer in future?
Which tcp/ip port does sql server run?
What are sql indexes?
How to download oracle sql developer?
What is the purpose of primary key?
What is a trigger in sql?