[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[],[],null,["# Cloud SQL stored procedures\n\n\u003cbr /\u003e\n\n[MySQL](/sql/docs/mysql/stored-procedures \"View this page for the MySQL database engine\") \\| PostgreSQL \\| [SQL Server](/sql/docs/sqlserver/stored-procedures \"View this page for the SQL Server database engine\")\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis section describes stored procedures for Cloud SQL instances.\n\nA stored procedure contains SQL code that you can reuse.\n| You cannot drop or alter system stored procedures.\n\nTo execute a stored procedure, you use the `CALL` command and replace the\nfollowing variable:\n\n- \u003cvar translate=\"no\"\u003eprocedure_name\u003c/var\u003e is the name of the stored procedure.\n\n```sql\nCALL procedure_name(parameters);\n```\nFor more information, see the [CALL](https://www.postgresql.org/docs/current/static/sql-call.html) reference page.\n\n\u003cbr /\u003e\n\nTo create your own stored procedure, see [CREATE PROCEDURE](https://www.postgresql.org/docs/current/static/sql-createprocedure.html)."]]