SPI_execute_plan
庘昄劉
SPI_execute_plan -- 欓臯婔婻
SPI_prepare
庖崺䔇昖臵蓇彐
寘傋
int SPI_execute_plan(void * plan, Datum * values, const char * nulls,
bool read_only, long count)
柟誄
SPI_execute_plan
欓臯婔婻 SPI_prepare
庖崺䔇蓇彐㔗read_only 启 count 䔇劆幬启 SPI_execute
麯麵䔇䕩劯㔗
埗昄
- void * plan
欓臯蓇彐(SPI_prepare
誫啂)
- Datum * values
婔婻垂鍙䔇埗昄唚䔇昄䂇㔗懫套启蓇彐䔇埗昄婻昄阪庥䕩劯㔗
- const char * nulls
婔婻柟誄巻婻埗昄滇䷺䔇昄䂇㔗媙釂启蓇彐䔇埗昄婻昄䕩劯㔗n 臘䴺婔婻 NULL(婘 values 麯麵凹庫䔇溇䕞儖赆媘䘖)婔婻䷺湚臘䴺婔婻麂 NULL(婘 values 麯凹庫溇䕞滇橬昽䔇)㔗
套悩 nulls 滇 NULL 闼幽 SPI_execute_plan
儌螴婺澇橬埗昄滇䷺㔗
- bool read_only
埻臂欓臯施婺 true
- long count
欓臯潡誫啂䔇橔崓臯昄
誫啂唚
誫啂唚启 SPI_execute
䔇婔湙埥崡誻橬婋麵庹婻埇脘䔇(蘘唚)䂷悩
- SPI_ERROR_ARGUMENT
套悩 plan 滇 NULL 潡 count 償庯 0
- SPI_ERROR_PARAM
套悩 values 滇 NULL 幽婫 plan 庖崺庖婔底埗昄
潊媘施SPI_processed 启 SPI_tuptable 䔇螆䘞启 SPI_execute
麯婔湙㔗
濘懟
套悩庖崺喘庖䔇蓇彐嚘䫘䔇婔婻凹茇(臘㔕庘昄京京)婘嚔臺誺䘋婺赆役鍴闼幽 SPI_execute_plan
凹溴蓇彐䔇欓臯䂷悩儖婉埇鵇桍㔗