4 Votes Vote

How do I use num_rows() function in the MySQLDB API for Python?

Posted by topdog 591 days ago Questions| mysqldb function mysqldb api All

I have this statement

cursor = connection.cursor()
query = "SELECT * from table"
cursor.execute(query)
res = cursor.fetchall()

Originally asked by: Bingimar on Stack Overflow

Discuss Bury


Who Voted for this Question