Computer Science
Which function/method do you use for executing an SQL query ?
Python MySQL
2 Likes
Answer
The execute() function with cursor object is used for executing an SQL query.
Answered By
1 Like
Related Questions
What is the package used for creating a Python database connectivity application.
Which function/method do you use for establishing connection to database ?
Which method do you use to fetch records from the result set ?
In order to open a connection with MySQL database from within Python using mysql.connector package, …………… function is used.
- open()
- database()
- connect()
- connectdb()