MySQL Connector/Python Release Notes
Syntax:
field_info = ccnx.fetch_fields()
Fetches column information for the active result set. Returns a list of tuples, one tuple per column
Raises a MySQLInterfaceError
exception for any
MySQL error returned by the MySQL server.
ccnx.query('SELECT CURRENT_USER(), 1 + 3, NOW()')
field_info = ccnx.fetch_fields()
for fi in field_info:
print(fi)
ccnx.consume_result()