Skip to content

steviecurran/sql2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages