Oct-23-2018, 12:42 AM
I suppose you intend to do something with the value of column 1. To do that, you would have to pass that value into your function call:
thecursor.execute(thequerystring) queryvalues=thecursor.fetchall() count=0 if (len(queryvalues)>0): for row in queryvalues: count=count+1 dosomething(row[0]) #Python is 0-indexedI'm not sure what you're doing with your count variable either. It may not be necessary.