Computer Science

To run an SQL query from within Python, you may use <cursor>. …………… method().

  1. query()
  2. execute()
  3. run()
  4. all of these

Python MySQL

2 Likes

Answer

execute()

Reason — The <cursor>.execute() method is used to run an SQL query from within Python.

Answered By

2 Likes


Related Questions