---
title: "fgetcsv to mysql insert statements"
date: "2011-08-07"
modified: "2013-03-04"
path: "/69-fgetcsv-to-mysql-insert-statements.html"
section: "/ramblings"
aliases:
  - "/69"
  - "/69-fgetcsv-to-mysql-insert-statements"
  - "/69.html"
  - "/ramblings/69-fgetcsv-to-mysql-insert-statements.html"
---

We needed a quick way of exporting from a CSV and importing en-mass in to a MySQL table. The following script did just that:

<https://gist.github.com/1071669>
