KnowledgeBoat Logo
|

Computer Science

To execute all the rows from the result set, which method is used?

  1. fetchall()
  2. fetchone()
  3. fetchmany()
  4. none of these

Python MySQL

2 Likes

Answer

fetchall()

Reason — The fetchall() method retrieves all the rows in a result set and returns them as a list of tuples.

Answered By

1 Like


Related Questions