DEV Community

Discussion on: Import CSV Data Into SQL Databases From The Terminal

Collapse
 
mupati profile image
Kofi Mupati

Thanks for sharing. We are here to learn from one another. I skimmed through the link you shared and my guess is that the table should be created for you to use the COPY command. csvsql doesn't just help to copy from the CSV file into the database table. It helps with schema generation from the CSV file, table creation and inserting data into the created table.

Collapse
 
euantorano profile image
Euan T

Yeah, unfortunately the schema must exist first when using COPY.