Python and MySQL print results
fetchall()
returns all fields and all rows in the cursor. You will need to iterate over the rows and access the fields in order to get at the data.
for row in result:
print row[0]
fetchall()
returns all fields and all rows in the cursor. You will need to iterate over the rows and access the fields in order to get at the data.
for row in result:
print row[0]