# Stored Procedures

Stored procedures can accept input parameters, query tables using SQL statements, call UDFs, define custom logic using control flow statements and variable assignment, and optionally return a value. Stored procedures can also be called across databases. See the [CREATE PROCEDURE](https://docs.singlestore.com/db/v9.1/reference/sql-reference/procedural-sql-reference/create-procedure.md) topic for more information.

***

Modified at: April 28, 2021

Source: [/db/v9.1/developer-resources/procedural-extensions/stored-procedures/](https://docs.singlestore.com/db/v9.1/developer-resources/procedural-extensions/stored-procedures/)

(An index of the documentation is available at /llms.txt)
