_py_stmt.mdx 408 字节
Newer Older
1
```py title=Single Row Binding
D
dingbo 已提交
2
{{#include docs/examples/python/bind_param_example.py}}
3 4 5
```

```py title=Multiple Row Binding
D
dingbo 已提交
6
{{#include docs/examples/python/multi_bind_example.py:bind_batch}}
7 8 9 10 11 12
```

:::info
Multiple row binding is better in performance than single row binding, but it can only be used with `INSERT` statement while single row binding can be used for other SQL statements besides `INSERT`.

:::