mysql_legacy_update
Executes a single UPDATE statement requiring a WHERE clause, returning affected and changed rows. Only active when MYSQL_LEGACY_ALLOW_UPDATE is enabled, preventing unsafe full-table writes.
Instructions
Runs exactly one UPDATE supplied in sql. WHERE is required and cannot be disabled. Off unless MYSQL_LEGACY_ALLOW_UPDATE=true. Returns affectedRows and changedRows. To empty a table use TRUNCATE via mysql_legacy_ddl, not a WHERE-less UPDATE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One MySQL UPDATE statement with a WHERE clause. |