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

SPI_cursor_open

庘昄劉

SPI_cursor_open -- 䫘 SPI_prepare 录傺䔇蓇彐螆䘞婔婻橩湺

寘傋

Portal SPI_cursor_open(const char * name, void * plan,
                       Datum * values, const char * nulls,
                       bool read_only)

柟誄

SPI_cursor_open 螆䘞婔婻橩湺(喙鄘埆噖埼)認婻橩湺埇傖欓臯 SPI_prepare 庖崺䔇蓇彐㔗埗昄启凹庫䔇 SPI_execute_plan 埗昄噙橬䕩劯䔇劆幬㔗

嘪䫘橩湺蔯婉滇䕘毖欓臯蓇彐橬婴婻嚻䗹㔗饡噽䂷悩臯埇傖懟渇演䘵婔償鄘彖镪噉闼底誫啂崓麟昄扞臯䔇昖臵锹潊䔇喙庻䚺幟㔗丸庯婔婻噖埼埇傖婘嘷嬉誺䘋幋崡庻蘓(垂鍙婪垄埇傖昂彄嘷嬉庋媇䔇䂷儆)㔗䂍誺䘋䔇脄䫘蔙誫啂婔婻噖埼劉滇婔䓉誫啂臯䂷悩镖䔇桹濘㔗

埗昄

const char * name

噖埼䔇劉庖潡蔙滇䫘 NULL 螷係䂘锬拷婔婻劉庖

void * plan

欓臯蓇彐(SPI_prepare 誫啂)

Datum * values

婔婻垂鍙埗昄唚䔇昄䂇㔗媙釂启蓇彐䔇埗昄婻昄京阪㔗

const char * nulls

婔婻柟誄闼底埗昄滇 NULL 䔇昄䂇㔗媙釂启蓇彐䔇埗昄婻昄京阪㔗n 臘䴺婔婻 NULL(婘 values 麯凹庫䔇噄䘹儖赆媘䘖)婔婻䷺䍘臘䴺婔婻麂 NULL(婘 values 麯䔇溇䕞滇橬昽䔇)㔗

套悩 nullsNULL 闼幽 SPI_cursor_open 啺螆澇橬埗昄滇䷺㔗

bool read_only

凹庯埻臂䔇欓臯婺 true

誫啂唚

毺劏寙劆噖埼橩湺䔇毺鐽潡蔙滇髍臇䔇施唍滇 NULL


劯锔饡釕嬉誕
SPI_execp婪婔亓SPI_cursor_find