CBSE Class 12 Computer Science Question 28 of 46

Interface Python with MySQL — Question 5

Back to all questions
5
Question

Question 5

Which of the following is not a legal method for fetching records from database from within Python?

  1. fetchone()
  2. fetchtwo()
  3. fetchall()
  4. fetchmany()
Answer

fetchtwo()

Reason — The fetchall() method, fetchmany() method, or fetchone() method are the legal methods used for fetching records from the result set.