Cloud SQL stored procedures

MySQL  |  PostgreSQL  |  SQL Server

This section describes stored procedures for Cloud SQL instances.

A stored procedure contains SQL code that you can reuse.

You cannot drop or alter system stored procedures.

To execute a stored procedure, you use theCALL command and replace thefollowing variable:

  • procedure_name is the name of the stored procedure.
CALLprocedure_name(parameters);
For more information, see the
CALL reference page.

To create your own stored procedure, seeCREATE PROCEDURE.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-14 UTC.