Intractivity
Intractivity
Intractivity
MySQL-PYTHON CONNECTIVITY
VIVA QUESTIONS
2. What are the five major steps for connecting MySQL and Python?
There are five major steps for connecting MySQL and Python.
cursor1 = conn1.cursor()
Here, cursor1 is a cursor object created using connection object conn1 using
cursor() method.
1
Connectivity | Vineeta Garg
Here, cursor1 is a cursor object which uses execute method to run the SQL query.
The sql query is given in the form of a string. The output of the SQL query is stored
in the cursor object in the form of a result set.