execute_batch
Execute one SQL statement against multiple parameter sets (up to 1000) and receive affected row counts per statement. Ideal for bulk data operations; verify results with SELECT to confirm correct writes.
Instructions
批量执行同一条 SQL 的多个参数集(最多 1000 行)。需要 permissions 包含 batch。返回 affectedRowsPerStatement 数组,推荐用 SELECT 验证副作用以保证数据写入正确(v4.0 G8 流程改进)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| paramsList | Yes | ||
| maxBatchSize | No | ||
| useTransaction | No |