using COPY from postgres to load data from csv

psql -U postgres -d db_name -c "COPY table_name FROM '/<PATH>/file.csv' DELIMITER ',' CSV HEADER;"

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.