In Python-MySQL connectivity, what is the primary purpose of a Cursor object?
2026
In Python-MySQL connectivity, what is the primary purpose of a Cursor object?
Answer: C. To execute SQL queries and fetch results from the database.
- A.
To store the password for the database connection.
- B.
To visually point to the data in the MySQL Workbench.
- C.
To execute SQL queries and fetch results from the database.
- D.
To act as a backup of the entire database.
Attempted by 262 students.
Show answer & explanation
Correct answer: C
Loading lesson…