©
This document usesPHP Chinese website manualRelease
SPI_prepare
int SPI_execute_plan(SPIPlanPtrplan, Datum *values, const char *nulls, boolread_only, longcount)
SPI_execute_plan
executes a plan prepared bySPI_prepare
.read_onlyandcounthave the same interpretation as inSPI_execute
.
execution plan (returned bySPI_prepare
)
An array of actual parameter values. Must have same length as the plan's number of arguments.
An array describing which parameters are null. Must have same length as the plan's number of arguments.nindicates a null value (entry invalueswill be ignored); a space indicates a nonnull value (entry invaluesis valid).
IfnullsisNULLthenSPI_execute_plan
assumes that no parameters are null.
truefor read-only execution
maximum number of rows to process or return
The return value is the same as forSPI_execute
, with the following additional possible error (negative) results:
ifplanisNULLor invalid, orcountis less than 0
ifvaluesisNULLandplanwas prepared with some parameters
SPI_processedandSPI_tuptableare set as inSPI_execute
if successful.