This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the
current
version, or one of the other supported versions listed above instead.
Name
fieldname -- field number-name conversion
Synopsis
fieldname(i)
Parameters
- i
-
field number (integer).
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.