CBSE Class 12 Computer Science Question 38 of 46

Interface Python with MySQL — Question 5

Back to all questions
5
Question

Question 5

A DELETE or UPDATE or INSERT query requires commit() to reflect the changes in the database.

Answer

True

Reason — We need to run commit() with the connection object for DELETE, UPDATE, or INSERT queries that change the data of the database table, so that the changes are reflected in the database.