MySQL Connector/Python Release Notes
Syntax:
Press CTRL+C to copyfield_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.
Press CTRL+C to copyccnx.query('SELECT CURRENT_USER(), 1 + 3, NOW()') field_info = ccnx.fetch_fields() for fi in field_info: print(fi) ccnx.consume_result()