[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],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)."]]