Import a .CSV file into PostgreSQL


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

Official documentation

Tags:  postgresql

Share: