import data from csv to postgresql
sudo -u postgres psql
Postgresql to csv file:-
COPY products TO '/home/products.csv' DELIMITER ',' CSV HEADER;
CSV to Postgresql table:-
COPY products FROM '/home/products.csv' DELIMITER ',' CSV HEADER;
products is table name.
Comments
Post a Comment