Column
objects store all the information there is to know about a particular column. Column
objects can be accessed through the connection.tables
dictionary which contains all columns or through cursor.info
which contains a tuple corresponding to the Column
objects selected after a SELECT
statement has been executed in portable mode (or None
after any other SQL operation).
>>> cursor.select(columns=['columnName'], tables=['tableName'], execute=True) >>> print cursor.info[0].name columnName >>> print cursor.info[0].table tableName
True
or False
depending on whether or not the column value is required (i.e. cannot be NULL)
True
if the field should be unique, False
otherwise
True
if the field is a primary key, False
otherwise
Converter
object for the field type
SELECT * FROM table