MySQL Connector/Python Developer Guide

11.31 _mysql_connector.MySQL.num_fields() Method

Syntax:

count = ccnx.num_fields()

Returns the number of columns in the active result set.