PQexecParamsBatch
功能描述
执行一个批量绑定参数的命令。
原型
1. PGresult* PQexecParamsBatch(PGconn* conn,
2. const char* command,
3. int nParams,
4. int nBatch,
5. const Oid* paramTypes,
6. const char* const* paramValues,
7. const int* paramLengths,
8. const int* paramFormats,
9. int resultFormat);
参数
表 1 PQexecParamsBatch参数
| 关键字 | 参数说明 |
|---|---|
| conn | 连接句柄。 |
| command | SQL文本串。 |
| nParams | 绑定参数的个数。 |
| nBatch | 批量操作数。 |
| paramTypes | 绑定参数类型。 |
| paramValues | 绑定参数的值。 |
| paramLengths | 参数长度。 |
| paramFormats | 参数格式(文本或二进制)。 |
| resultFormat | 返回结果格式(文本或二进制)。 |
返回值
PGresult类型指针。
