# PQexecPreparedBatch
#### 功能描述
发送一个请求来用给定的批量参数执行一个预备语句，并且等待结果。
#### 原型
```
PGresult* PQexecPreparedBatch(PGconn* conn, 
                              const char* stmtName, 
                              int nParams,
                              int nBatchCount,
                              const char* const* paramValues,
                              const int* paramLengths,
                              const int* paramFormats,
                              int resultFormat);
```
#### 参数
表1PQexecPreparedBatch参数 
| **关键字** | **参数说明**                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|:---|:---|
| conn                                              | 连接句柄。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| stmtName                                           | *stmt*名称，可以用""或者NULL来引用未命名语句，否则它必须是一个现有预备语句的名字。                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| nParams                                           | 参数个数。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| nBatchCount                                         | 批量数。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| paramValues                                       | 参数的实际值。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| paramLengths                                        | 参数的实际数据长度。 须知： 下列情况中，参数长度强制使用paramLengths中对应的值： - 参数格式为二进制。  - 参数格式为文本且连接参数force_no_truncation或者supportZeroCharacter的值为1。   此时paramLengths不允许为空，并且参数长度的正确性须由调用者保证。 |
| paramFormats                                         | 参数的格式（文本或二进制）。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| resultFormat                                        | 结果的格式（文本或二进制）。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
   
#### 返回值
PGresult类型指针。
