KnowledgeBoat Logo
|

Computer Science

Use fetchall() method to retrieve only one value from a database table.

Python MySQL

3 Likes

Answer

False

Reason — The fetchall() method retrieves all the rows in a result set and returns a list of tuples. On the other hand, the fetchone() method fetches only one row from the result set in the form of a tuple or a list.

Answered By

2 Likes


Related Questions