public sealed class Statement : IMessage<ExecuteBatchDmlRequest.Types.Statement>, IEquatable<ExecuteBatchDmlRequest.Types.Statement>, IDeepCloneable<ExecuteBatchDmlRequest.Types.Statement>, IBufferMessage, IMessage
Parameter names and values that bind to placeholders in the DML string.
A parameter placeholder consists of the @ character followed by the
parameter name (for example, @firstName). Parameter names can contain
letters, numbers, and underscores.
Parameters can appear anywhere that a literal value is expected. The
same parameter name can be used more than once, for example:
"WHERE id > @msg_id AND id < @msg_id + 100"
It is an error to execute a SQL statement with unbound parameters.
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value. For example, values of type BYTES and values
of type STRING both appear in [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as JSON strings.
In these cases, param_types can be used to specify the exact
SQL type for some or all of the SQL statement parameters. See the
definition of [Type][google.spanner.v1.Type] for more information
about SQL types.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eStatement\u003c/code\u003e class within the \u003ccode\u003eExecuteBatchDmlRequest.Types\u003c/code\u003e namespace for the Google Cloud Spanner V1 library, specifically focusing on version 3.11.0, while providing links to other versions as well.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatement\u003c/code\u003e class is designed to represent a single DML statement, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inheriting methods from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatement\u003c/code\u003e class has two constructors: a default constructor, \u003ccode\u003eStatement()\u003c/code\u003e, and a constructor that takes another \u003ccode\u003eStatement\u003c/code\u003e object as an argument, \u003ccode\u003eStatement(ExecuteBatchDmlRequest.Types.Statement other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eStatement\u003c/code\u003e class include \u003ccode\u003eParams\u003c/code\u003e, a \u003ccode\u003eStruct\u003c/code\u003e type for holding parameter names and values, \u003ccode\u003eParamTypes\u003c/code\u003e, a \u003ccode\u003eMapField\u003c/code\u003e for specifying SQL types of parameters, and \u003ccode\u003eSql\u003c/code\u003e, a string representing the required DML statement.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides documentation for version 3.11.0 of the class while also offering links to documentation for versions spanning from 3.5.0 to 5.0.0-beta05, allowing for version-specific reference and comparison.\u003c/p\u003e\n"]]],[],null,[]]