164 Star 224 Fork 1.2K

openGauss / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
PQexecParamsBatch.md 5.76 KB
一键复制 编辑 原始数据 按行查看 历史
liyang 提交于 2020-11-11 10:11 . fix format bugs

PQexecParamsBatch

功能描述

执行一个批量绑定参数的命令。

原型

PGresult* PQexecParamsBatch(PGconn* conn, 
                            const char* command,
                            int nParams,
                            int nBatch, 
                            const Oid* paramTypes,
                            const char* const* paramValues,
                            const int* paramLengths,
                            const int* paramFormats,
                            int resultFormat);

参数

表 1 PQexecParamsBatch参数

关键字

参数说明

conn

连接句柄。

command

SQL文本串。

nParams

绑定参数的个数。

nBatch

批量操作数。

paramTypes

绑定参数类型。

paramValues

绑定参数的值。

paramLengths

参数长度。

paramFormats

参数格式(文本或二进制)。

resultFormat

返回结果格式(文本或二进制)。

返回值

PGresult类型指针。

1
https://gitee.com/opengauss/docs.git
git@gitee.com:opengauss/docs.git
opengauss
docs
docs
2.1.0

搜索帮助