mysql_legacy_insert
Execute a single MySQL INSERT statement on legacy databases, returning insertId and affectedRows. Requires MYSQL_LEGACY_ALLOW_INSERT=true and supports ON DUPLICATE KEY UPDATE.
Instructions
Runs exactly one INSERT supplied in sql. Off unless MYSQL_LEGACY_ALLOW_INSERT=true. Returns insertId and affectedRows. INSERT ... ON DUPLICATE KEY UPDATE is accepted and can overwrite existing rows. For UPDATE/DELETE/DDL use mysql_legacy_update, mysql_legacy_delete, or mysql_legacy_ddl.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One MySQL INSERT statement. |