Computer Science
To obtain all the records retrieved, you may use <cursor>. …………… method.
- fetch()
- fetchmany()
- fetchall()
- fetchmultiple()
Python MySQL
4 Likes
Answer
fetchall()
Reason — The <cursor>.fetchall() method will return all the rows from the resultset in the form of a tuple containing the records.
Answered By
1 Like
Related Questions
A database …………… is a special control structure that facilitates the row by row processing of records in the resultset.
- fetch
- table
- cursor
- query
Which of the following is not a legal method for fetching records from database from within Python?
- fetchone()
- fetchtwo()
- fetchall()
- fetchmany()
To fetch one record from the resultset, you may use <cursor>. …………… method.
- fetch()
- fetchone()
- fetchtuple()
- none of these
To fetch multiple records from the resultset, you may use <cursor>. …………… method.
- fetch()
- fetchmany()
- fetchmultiple()
- fetchmore()