KnowledgeBoat Logo

Computer Science

To fetch one record from the resultset, you may use <cursor>. …………… method.

  1. fetch()
  2. fetchone()
  3. fetchtuple()
  4. none of these

Python MySQL

2 Likes

Answer

fetchone()

Reason — The <cursor>.fetchone() method will return only one row from the resultset in the form of a tuple containing a record.

Answered By

1 Like


Related Questions