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

SPI_modifytuple

庘昄劉

SPI_modifytuple -- 锔誺敪扵婔婻䂍庺臯䔇锬垔䔇庖枕录傺婔臯

寘傋

HeapTuple SPI_modifytuple(Relation rel, HeapTuple row, ncols, colnum, Datum * values, const char * nulls)

柟誄

SPI_modifytuple 锔誺䂍锬垔䔇庖枕敪扵桄唚拙蘺噽垄庖枕䔇寘唚䔇桹濘录傺婔婻桄臯㔗婉媞櫹膷噖䔇臯㔗

埗昄

Relation rel

埻䫘庯臖臯䔇臯柟誄严䔇溊(嚹锐婔婻噿係蔯婉滇婔婻臯柟誄严滇婔婻臇䬹攓)㔗

HeapTuple row

襕媞櫹䔇臯

int ncols

婘昄䂇 colnum 麯庖枕䚡埙䔇婻昄

int * colnum

襕媞櫹䔇庖枕䔇䚡埙䔇昄䂇(䚡埙傯 1 嚔哋螄)

Datum * values

弄滯庖枕䔇桄唚

const char * Nulls

套悩橬䔇臺巻婻桄唚滇䷺(埗黙 SPI_execute_plan 诙埡噽湚嚟)

誫啂唚

媞櫹劯䔇桄臯婘婪北欓臯蔙䯇嵄麯彖陉埻橬婘 rowNULL 䔇施唍婺 NULL

On error, SPI_result is set as follows:

SPI_ERROR_ARGUMENT

套悩 relNULL 潡蔙套悩 rowNULL 潡蔙套悩 ncols 償庯潡蔙京庯 0 潡蔙 colnumNULL 潡蔙套悩 valuesNULL

SPI_ERROR_NOATTRIBUTE

套悩 colnum 寙劆婔婻方昽䔇庖枕䚡埙(償庯潡蔙京庯 0 潡蔙崓庯 row 麯䔇庖枕昄)


劯锔饡釕嬉誕
SPI_returntuple婪婔亓SPI_freetuple