CBSE Class 12 Computer Science Question 33 of 46

Interface Python with MySQL — Question 10

Back to all questions
10
Question

Question 10

To reflect the changes made in the database permanently, you need to run <connection>. ............... method.

  1. done()
  2. reflect()
  3. commit()
  4. final()
Answer

commit()

Reason — The <connection>.commit() method is used to permanently reflect the changes made in the database when working with database connections in Python.