Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db = pymysql.connect(host=<host>,port=<port>,user=<user>,password=<password>)
- cursor = db.cursor()
- for line in csv_file_lines:
- cursor.execute('INSERT INTO TABLE....')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement