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
Can I call a procedure inside a function?
How do I pipe the output of one isql to another?
What is the difference between row level and statement level trigger?
Can you inner join the same table?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
What is attribute indicator in pl sql?
Explain commit, rollback and savepoint.
What is a heap in sql?
What are the syntax and use of the coalesce function?
how to start mysql server? : Sql dba
What is natural join in sql?
What is synonyms?
How do I restart sql?
Does user triggers have entry for trigger with compilation errors?
what is sql profiler? : Sql dba