Home » A result set is extracted from the database using the cursor object (that has been already created) by giving the following statement

A result set is extracted from the database using the cursor object (that has been already created) by giving the following statement

A result set is extracted from the database using the cursor object (that has been already created) by giving the following statement.

Mydata=cursor.fetchone()

(a) How many records will be returned by fetchone() method?

(b) What will be the datatype of the Mydata object after the given command is executed?

Answer

(a) One record

(b) tuple