KnowledgeBoat Logo

Computer Science

Assertion. One by one the records can be fetched from the database directly through the database connection.

Reason. The database query results into a set of records known as the resultset.

Python MySQL

1 Like

Answer

(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.

Answered By

1 Like


Related Questions