Stored Procedures
Stored Procedure is a sub-program/function which consists of a set of statements stored in the database server. Stored procedures usually consists of a generic code which can reused at multiple places. We can also pass parameters while calling the stored procedures.
Syntax:
How to call Stored procedure
How to delete stored procedure
Example:
Consider you are writing a procedure to retrieve all the order details of a particular Customer.
How to call Stored Procedure
Result:
ORDERID | CUSTOMERID | ITEM | BILLAMOUNT |
---|---|---|---|
123 | C10 | Mango | 5.00 |