I am trying to read a data from csv file to postgres table. I have two columns in table, but there are four fields in csv data file. I want to read only two specific columns from csv to table.
Join the Stack Overflow Community
Stack Overflow is a community of 6.6 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
Would you know how to do it if there were only those two columns in CSV file? If yes, then the simplest solution is to transform the CSV prior to importing into Postgres. |
|||||||||
|