↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 6.3
Historical version. PostgreSQL 6.3 has reached end of support. See the current manual.
PostgreSQL
PrevNext

SPI_fnumber

Name

SPI_fnumber — Finds the attribute number for specified attribute

SPI_fnumber(tupdesc, fname)

Inputs

TupleDesc tupdesc

Input tuple description

char * fname

Field name

Outputs

int

Attribute number

Valid one-based index number of attribute
SPI_ERROR_NOATTRIBUTE if the named attribute is not found

Description

SPI_fnumber returns the attribute number for the attribute with name in fname.

Usage

Attribute numbers are 1 based.


PrevHomeNext
SPI_modifytupleUpSPI_fname

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.