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
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
Why cross join is used?
Why do we need unique key in a table?
Why do we use joins in sql?
How can we optimize a sql query?
what is text? : Sql dba
what is a record in a database ? : Sql dba
How many types of literals are available in pl sql?
What is rowid in sql?
What are sql built in functions?
Is sql a backend?
how to use 'mysql' to run sql statements? : Sql dba
What is a recursive stored procedure?
How do I count duplicates in sql?
How can check sql version from command line?