Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/steviecurran/sql2csv


https://github.com/steviecurran/sql2csv

database-management python query-language sql sqlite

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# sql2csv

C shell script to convert an SQL file to CSVs (one for each table). Especially useful when running into errors like "Parse error: file is not a database" and not wanting to take out an online subscription (e.g.
https://www.rebasedata.com/convert-sql-to-csv-online).

Should be easily convertable to other shells.

E.g. ./sql2csv.csh WILL GIVE

employees.sql written to

11 departments.csv

331604 dept_emp.csv

49 dept_manager.csv

300025 employees.csv

967331 salaries.csv

443309 titles.csv