PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔媆誕嬉誕

SPI_prepare

庘昄劉

SPI_prepare -- 婺婔婻变傴庖崺婔婻蓇彐嘖婉䆋剿欓臯垄

寘傋

void * SPI_prepare(const char * command, int nargs, Oid * argtypes)

柟誄

SPI_prepare 婺弄滯䔇变傴录傺启誫啂婔婻欓臯蓇彐嘖滇婉欓臯昖臵㔗庫臖埻傯婔婻噾誂毖䔇誺䘋鄘脄䫘㔗

套悩䕩劯潡蔙䌂嚚䔇昖臵襕崔渇麉崉欓臯闼幽埻誕臯婔渇昖臵蓇彐庫臖滇敘喘底㔗SPI_prepare 檪婔婻变傴庖严婾蘸扵潊婔婻欓臯螇彐嘹埇傖䫘 SPI_execute_plan 崔渇欓臯垄㔗

埇傖檪鵇䚡喍䔇昖臵锔䫘寡桹濘滇婘闼底捞锔昖臵麯滇婩麟䔇婄桹幥喍埗昄($1, $2 京京)㔗埗昄䔇昄唚锟劯婘脄䫘 SPI_execute_plan 䔇施唍弄滯㔗認湙儌噕螩噾庖崺䔇昖臵婘誩懫澇橬埗昄施幪濕冖崔䔇婺劽婋嘪䫘㔗

SPI_prepare 誫啂䔇蓇彐埻脘婘嘷嬉誺䘋脄䫘婺嘪䫘啹婺 SPI_finish 麪櫆婺婔婻蓇彐彖陉䔇喙庻㔗婉誺婔婻蓇彐埇傖䫘庘昄 SPI_saveplan 庘昄媺庻敘阪䔇施閘㔗

埗昄

const char * command

变傴庖严婾

int nargs

膷噖埗昄䔇婻昄($1, $2 京京)

Oid * argtypes

婔婻毺鐽毺劏寙劆埗昄昄扞䌂傋䔇 OID 昄䂇

誫啂唚

SPI_prepare 誫啂婔婻毺劏婔婻欓臯蓇彐䔇麂䷺毺鐽㔗髍臇施儖誫啂 NULL 幽婫 SPI_result 儖螆䘞婺启 SPI_execute 劯湙髍臇䔇誫啂唚冋崡滇婘 commandNULL 䔇施唍潡蔙滇 nargs 償庯 0 潡蔙 nargs 崓庯 0 幽婫 argtypesNULL 䔇施唍嚔赆螆䘞潊 SPI_ERROR_ARGUMENT

濘懟

嘪䫘埗昄橬婔婻䚺䗹啹婺蓇彐単婉䘖長儖柊冕䂍埗昄䔇昄唚欔傖䕩懫捞锔䔇婥五欔橬埇蓕婩麟䔇变傴蔯蘔垄埇脘嚔啔庺婔婻膄噞䔇蓇彐锬拷㔗


劯锔饡釕嬉誕
SPI_exec婪婔亓SPI_getargcount