csv to mysql python

$333.00

I'm loading a CSV values in three columns into mysql table. how to train your dragon season 1 import csv import MySQLdb mydb = MySQLdb. i want you to want me connect (host='localhost', user='root', passwd='', db='mydb') cursor = mydb cursor () csv_data = csv reader (file ('students csv')) for row in csv_data: cursor execute ('INSERT INTO testcsv (names, \ classes, mark )' \ 'VALUES ("%s", "%s",

Quantity:
Add To Cart