Computer Science

Name the method which is used for displaying only one record from the result set.

  1. fetchmany()
  2. fetchno()
  3. fetchall()
  4. fetchone()

Python MySQL

3 Likes

Answer

fetchone()

Reason — The fetchone() method fetches only one record from the result set in the form of a tuple or a list.

Answered By

2 Likes


Related Questions