The GoogleSQL procedural language lets you execute multiple statements
in one query as a multi-statement query. You can use
a multi-statement query to:
Run multiple statements in a sequence, with shared state.
Automate management tasks such as creating or dropping tables.
CALL
Syntax
CALLprocedure_name(procedure_argument[,…])
Description
Calls aprocedurewith an argument list.procedure_argumentmay be a variable or an expression.
Spanner doesn't support stored procedures or server-side scripts.
UseCALLwith only the example procedures listed on this page.
The maximum depth of procedure calls is 50 frames.
Examples
The following example cancels a query with the query ID12345.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-04 UTC."],[],[]]