import CSV file to a table

From: Günce Kaya <guncekaya14(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: import CSV file to a table
Date: 2017-03-08 09:13:47
Message-ID: CAAV2-mW0WiADfJWz9=hWAy3orJWAyNOAPwG559EY2GZGS8eBcg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I want to import content of CSV file to a table via bash script without
creating temporary table and I also want to skip some columns in CSV file
(for instance, CSV file has 12 column and main table has only 2 column, If
possible I would use only 2 column in CSV file) Is there any way to do it?

Regards,

--
Gunce Kaya

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2017-03-08 09:24:28 Re: Request to confirm which command is use for exclusive operation
Previous Message Yogesh Sharma 2017-03-08 08:30:10 Re: Request to confirm which command is use for exclusive operation