update_query
Run an UPDATE SQL query on a writable connection, auto-commit the transaction, and get the number of rows updated.
Instructions
Execute an UPDATE statement. Commits automatically. Only available on writable connections (readonly=false in list_schemas). Returns the number of rows updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | UPDATE SQL statement. Must start with UPDATE. | |
| params | No | Bind parameters as key-value pairs, e.g. {"id": 1}. | |
| connection | No | Connection name from list_schemas. Must have readonly=false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |