PQexecParams
Description
Runs a command to bind parameters.
Prototype
PGresult* PQexecParams(PGconn* conn, const char* command, int nParams, const Oid* paramTypes, const char* const* paramValues, const int* paramLengths, const int* paramFormats, int resultFormat);
Parameters
Keyword |
Description |
---|---|
conn |
Connection handle. |
command |
SQL text string. |
nParams |
Number of parameters to be bound. |
paramTypes |
Types of parameters to be bound. |
paramValues |
Values of parameters to be bound. |
paramLengths |
Parameter lengths.
NOTICE:
In the following cases, the parameter length is forcibly set to the corresponding value of paramLengths:
In these cases, paramLengths cannot be empty, and the caller must ensure the correctness of the parameter length. |
paramFormats |
Parameter formats (text or binary). |
resultFormat |
Result format (text or binary). |
Return Values
PGresult pointers.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.