
# PQexecParams
#### 功能描述
执行一个绑定参数的命令。
#### 原型
```
PGresult* PQexecParams(PGconn* conn, 
                       const char* command,
                       int nParams,
                       const Oid* paramTypes,
                       const char* const* paramValues,
                       const int* paramLengths,
                       const int* paramFormats, 
                       int resultFormat);
```
#### 参数
表1PQexecParams参数 
| **关键字**      | **参数说明**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|:---|:---|
| conn         | 连接句柄。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| command      | SQL文本串。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| nParams      | 绑定参数的个数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| paramTypes   | 绑定参数的类型。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| paramValues  | 绑定参数的值。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| paramLengths | 参数长度。 须知： 下列情况中，参数长度强制使用paramLengths中对应的值： - 参数格式为二进制。  - 参数格式为文本且连接参数force_no_truncation的值为1。   此时paramLengths不允许为空，并且参数长度的正确性须由调用者自行保证。 |
| paramFormats | 参数格式（文本或二进制）。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| resultFormat | 返回结果格式（文本或二进制）。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
   
#### 返回值
PGresult类型指针。
