Data Load and Import
If you are dealing with small datasets during the development phase, you have the opportunity to easily test ideas by utilizing the CSV import feature.
Loading
Multiple rows insert
INSERT INTO table_name(column1,column2…)
VALUES (value1,value2,…),
(value1,value2,…),INSERT INTO shippers(companyName,phone)
VALUES ('UPS','1-800-782-7892'),
('DHL','1-800-225-5345')Load CSV
psql -h DATABASE_URL -p 5432 -d postgres -U postgres \
-c "\COPY projects FROM './projects.csv';"psql -h DATABASE_URL -p 5432 -d postgres -U postgres \
-c "\COPY projects FROM './projects.csv' WITH DELIMITER ',' CSV HEADER"Importing


Last updated