Answer Posted / glibwaresoftsolutions
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 the location of pre_defined_functions.
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
how to convert dates to character strings? : Sql dba
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
define join and explain different type of joins? : Sql dba
What is rollback?
Does truncate free space?
What version is sql?
What is a primary key sql?
what is the difference between a local and a global temporary table? : Sql dba
How to return multiple rows from the stored procedure?
What is trigger explain with example?
What is the use of non clustered index?
How does one load ebcdic data? : aql loader
What is int identity in sql?