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
Fill in the blanks:
A _________ is a collection of organized information that can be easily used, managed, updated and is classified according to its organizational approach.
Read operation on any table means to fetch some useful information from the table.
rowcount is a read-only attribute.
To disconnect database connection, use connect() method.