# NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

# database.Table.fields()

## Syntax

    fields()

## Description

Returns a list with all the names of all the fields in the table.

## Example

    db = ximport("database")
    book = db.connect("book")
    print book.table("pages").fields()
    >>> ["id", "title", "text", "image", "pagenumber"]