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
Answered By
1 Like
Related Questions
Assertion. A database cursor receives all the records retrieved as per the query.
Reason. A resultset refers to the records in the database cursor and allows processing of individual records in it.
Assertion. The database cursor and resultset have the same data yet they are different.
Reason. The database cursor is a control structure and the resultset is a logical set of records.
Assertion. The cursor rowcount returns how many rows have been retrieved so far through fetch…() methods.
Reason. The number of rows in a resultset and the rowcount are always equal.
What are the steps to connect to a database from within a Python application ?