How-To: Insert CSV file into Database Table (csv2sql.com)
Apr.02, 2008 in
Development
I’ve developed a simple online tool that allows you to convert a CSV file into SQL statements that can be inserted into a database table. It’s a simple process:
- Create a CSV file containing your data
- The first row of the CSV file should contain column titles which exactly match the fields in your database table
- Go to http://www.csv2sql.com/
- Upload your CSV file and enter the name of your database table
- Click GO
- INSERT statements are generated for you by the online tool.
- Copy the SQL to your clipboard and paste into a file to load into your database – and you are done!
It’s that easy. This tool used to be at csv2sql.evandavey.com, however I thought www.csv2sql.com was easier to remember, so I purchased the domain.

Leave a Reply