Computer Science
Which method do you use to fetch records from the result set ?
Python MySQL
3 Likes
Answer
The fetchall() method, fetchmany() method, or fetchone() method can be used to fetch records from the result set.
Answered By
3 Likes
Related Questions
Which function/method do you use for establishing connection to database ?
Which function/method do you use for executing an SQL query ?
In order to open a connection with MySQL database from within Python using mysql.connector package, …………… function is used.
- open()
- database()
- connect()
- connectdb()
A database …………… controls the connection to an actual database, established from within a Python program.
- database object
- connection object
- fetch object
- query object