Answer Posted / hr@tgksolutions.com
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
Explain autonomous transaction.
explain the difference between bool, tinyint and bit. : Sql dba
What jobs use sql?
Is id a reserved word in sql?
What is data definition language?
what is rollback? : Sql dba
What is the difference between null value, zero, and blank space?
What is delimiter in pl sql?
how to extract a unit value from a date and time? : Sql dba
How to return an array from java to pl/sql?
Can one improve the performance of sql*loader? : aql loader
what is recursive stored procedure? : Sql dba
How do I remove all records from a table?
what is a materialized view? : Sql dba
Explain the methods used to protect source code of pl/sql.