Which data type is mostly returned by fetchall() method in Python-MySQL connectivity?
Which data type is mostly returned by fetchall() method in Python-MySQL connectivity?
Select the most common answer
Show answerHide answer
Correct answer: (B) A list of tuples or an empty list, if no more rows are available.
Explanation
cursor.fetchall() returns the remaining rows as a list of tuples (one tuple per row), or an empty list if no rows are left.