Stored Procedure
Last updated
Last updated
A stored procedure is a precompiled set of one or more SQL statements that are stored on the database server. It is a subroutine available to applications that access a relational database management system (RDBMS). Stored procedures can perform a variety of tasks such as data validation, data manipulation, and control logic.
The procedure should be installed into the database before using it.
All input parameters are optional. Each input parameter has three attributes:
Name - mandatory string with a length of less than 255 characters
Type - mandatory. Possible types are:
and
and
and
and
- for BLOB data type
Cast - optional. Sometimes it needs a type to be explicitly defined to be cast. For example:
string with date to be casted to datetime (::datetime operator for PostgreSQL)
string to VARCHAR2(100) for Oracle
Procedure
Configuration: