Skip to content

Instantly share code, notes, and snippets.

View cmbxl's full-sized avatar

cmbxl cmbxl

View GitHub Profile
@cmbxl
cmbxl / csv-to-mysql.py
Created June 6, 2018 06:33 — forked from radaniba/csv-to-mysql.py
Python CSV to MySQL
#!/usr/bin/env python
# Run with no args for usage instructions
#
# Notes:
# - will probably insert duplicate records if you load the same file twice
# - assumes that the number of fields in the header row is the same
# as the number of columns in the rest of the file and in the database
# - assumes the column order is the same in the file and in the database
#