BIND_VALUES

functionsupportedQueries & DML

docs.snowflake.com ↗

Information SchemaTable functions

This INFORMATION_SCHEMA table function returns information about the values of bind variables used in queries.

Syntax

BIND_VALUES( <query_id> )

Parameters

NameRequiredDescription
query_idrequiredThe string identifier of a query that includes one or more bind variables. Snowflake query IDs are unique strings that resemble 01b71944-0001-b181-0000-0129032279f6. If NULL, an empty table is returned.

Usage notes

Output

The BIND_VALUES table function produces one row for each bind variable that is used in the specified query. Each row contains the following columns: Column name | Data type | Description QUERY_ID | VARCHAR | The ID of the query. POSITION | NUMBER | For positional bind variables, the position of the bind variable. The field is NULL for named bind variables. NAME | VARCHAR | For named bind variables, the name of the bind variable. The field is NULL for positional bind variables. TYPE | VARCHAR | The Snowflake data type of the bind variable. VALUE | VARCHAR | The value of the bind variable. Bind values that contain more than 100,000 characters are truncated.