164 Star 224 Fork 1.2K

openGauss / docs

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

PQexecPrepared

功能描述

发送一个请求来用给定参数执行一个预备语句,并且等待结果。

原型

PGresult* PQexecPrepared(PGconn* conn, 
                         const char* stmtName, 
                         int nParams, 
                         const char* const* paramValues,
                         const int* paramLengths,
                         const int* paramFormats,
                         int resultFormat);

参数

表 1 PQexecPrepared参数

关键字

参数说明

conn

连接句柄。

stmtName

stmt名称,可以用""或者NULL来引用未命名语句,否则它必须是一个现有预备语句的名字。

nParams

参数个数。

paramValues

参数的实际值。

paramLengths

参数的实际数据长度。

paramFormats

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

resultFormat

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

返回值

PGresult类型指针。

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

搜索帮助