A SQL Stored procedure is a sql procedure that is
You create a stored procedure with a SQL DML Request that contains the SQL statements
You execute a SQL stored procedure with a SQL DML Fetch.
Every database has its own syntax to call a procedure. See the section_support_below
But generally the database accepts JDBC escape syntax and a procedure can be called as follow for most of the database:
{call <procedure_name> [(<argument-list>)]}
or, where a procedure returns a result parameter:
{? = call <procedure_name> [(<argument-list>)]}
Example:
{ CALL do_db_maintenance() }
Stored procedures are supported by most DBMSs, but there is a fair amount of variation in their syntax and capabilities
| Database | Database Support | Tabulify howto |
|---|---|---|
| MySQL | How to execute a procedure in MySQL ? | |
| Oracle | PLSQL DECLARE/BEGIN/END block | |
| Postgres | CALL statement | Procedure, Procedure with out parameters |
| SQLite | Not supported | |
| SQL Server | SQL BEGIN/END block |
We support procedure execution with parameters