Skip to main content

Update rows by key

Set columns to new values in the rows of a table whose key column has one of the values given; the values are sent apart from the SQL (G6).

Command in the Snowflake toolkit · id ooa.snowflake/update_rows · 11 inputs (4 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Account address (URL)StringNoYour Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com.
Table nameStringYesTable, written as DATABASE.SCHEMA.TABLE (or just TABLE with database and schema set).
Key columnStringYesColumn that identifies a row.
Key valuesListYesKey values of the rows to update.
ValuesDictionaryYesColumn to its new value.
WarehouseStringNoWarehouse that runs the query. Leave empty for the user's default warehouse.
DatabaseStringNoDatabase of the table when table_name has no database.
SchemaStringNoSchema of the table when table_name has no schema.
RoleStringNoRole to run as. Leave empty for the user's default role.
TokenCredentialNoAccess token from the vault: an OAuth token, a key-pair JWT or a programmatic access token. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Token typeStringNoOAUTHKind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN.

Outputs​

OutputTypeWhat it is
rows_changedNumberRows updated.