This page in other versions: Unsupported versions: 7.1 / 7.2 / 7.3

fieldname

Name

fieldname -- get field name by number

Synopsis

fieldname(i)

Parameters

i

field number (integer).

Return Type

string

field name.

Exceptions

TypeError

Bad parameter type, or too many arguments.

ValueError

Invalid field number.

pg.error

Invalid query result, or invalid connection.

Description

fieldname() method allows to find a field name from its rank number. It can be useful for displaying a result. The fields are in the same order than the result values.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group