Procedural SQL Reference
This section contains information about SingleStore Procedural SQL (PSQL), which encompasses stored procedures, user-defined scalar-value functions (UDFs), user-defined table-valued functions (TVFs), and user-defined aggregate functions (UDAFs).
SingleStore also supports Wasm-based functions.
Extensions in SingleStore allow you to combine user-defined objects, such as UDFs or UDAFs, into a packaged archive and then create, manage, and deploy these objects and other resources using the CREATE EXTENSION
command.
For information on when to use PSQL, Wasm-based, or external functions, refer to Choose Between PSQL, Wasm-based, and External Functions.
In this section
- Anonymous Code Blocks
- Control Flow Statements
- Exceptions and Exception Handling
- MySQL Client Delimiters
- Transactions in Stored Procedures
- Extensions
- CREATE AGGREGATE
- CREATE [OR REPLACE] EXTERNAL FUNCTION
- CREATE FUNCTION (UDF)
- CREATE FUNCTION (TVF)
- CREATE PROCEDURE
- CREATE [OR REPLACE] TEMPORARY PROCEDURE …
- DROP FUNCTION
- DROP PROCEDURE
- DROP AGGREGATE
- SHOW AGGREGATES
- SHOW CREATE FUNCTION
- SHOW CREATE AGGREGATE
- SHOW FUNCTIONS
- SHOW PROCEDURES
- %ROWTYPE and %TYPE
- ARRAY
- CALL
- CREATE_ARRAY
- COLLECT
- ECHO
- ECHO SELECT
- EXECUTE IMMEDIATE
- INSERT_ALL
- RECORD
- ROW
- QUERY
- SCALAR
- TO_QUERY
Last modified: August 14, 2024