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
listfields -- lists the fields names of
the query result
Synopsis
listfields()
Exceptions
- SyntaxError
-
Too many arguments.
- pg.error
-
Invalid query result, or invalid connection.
Description
listfields() method returns the list
of field names defined for the query result. The fields are in
the same order as the result values.