Python With MYSQL Fetching Records From Fetchall
Python With MYSQL Fetching Records From Fetchall
Import mysql.connector
Con=mysql.connector.connect(host=’localhost’,
User=’root’,
Passwd=’12345’,
Database=’class12’)
Cur=con.cursor()
Cur.execute(“Select * from Employee”)
Data=cur.fetchall()
Cur=con.cursor()
Q 14. Write the Python code to insert the data in the table.