Import a .CSV file into PostgreSQL


psql --username=moven postgresql://services/mb_development -c "COPY mytablename FROM STDIN CSV HEADER" <mydatadump.csv

Official documentation

Date: 2016-11-02

Tags:  postgresql

Share: