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

https://github.com/steviecurran/sql2csv

C shell script to convert an SQL file to CSVs
https://github.com/steviecurran/sql2csv

database-management python query-language sql sqlite

Last synced: 2 months ago
JSON representation

C shell script to convert an SQL file to CSVs

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