Home / Questions / How do you execute a query in Python using DB-API?
Explanatory Question

How do you execute a query in Python using DB-API?

👁 229 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Answer: You can use the execute() method of a cursor object to execute a query.