CBSE Class 12 Computer Science
Question 4 of 46
Interface Python with MySQL — Question 4
Back to all questions(d)
Assertion is false but Reason is true.
Explanation
Records can be fetched from the database using a database connection. To fetch multiple records from the result set, we use the .fetchmany() method. To fetch one record from the result set, we use the .fetchone() method. To fetch all the records, we use the .fetchall() method. The result set refers to a logical set of records fetched from the database by executing an SQL query and made available to the application program.