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
What is record type in pl sql?
what are the different tables present in mysql? : Sql dba
What is mdf ldf and ndf?
What is the use of & in pl sql?
What is the difference between instead of trigger and after trigger?
Explain unique key in sql.
What is pl sql block in dbms?
what are the types of subquery? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
What are the parameter modes supported by pl/sql?
How do you declare a constant?
Is sql workbench free?
What is an exception in pl/sql?
Which constraints we can use while creating database in sql?
What is the difference between partition and index?