title: Copy a few of the columns of a csv file into a table
body: <p>I have a CSV file with 10 columns. After creating a PostgreSQL table with 4 columns, I want to copy some of 10 columns into the table.</p>
  
  <p>the columns of my CSV table are like:</p>
  
  <pre><code>x1 x2 x3 x4 x5 x6 x7 x8 x9 x10
  </code></pre>
  
  <p>the columns of my PostgreSQL table should be like:</p>
  
  <pre><code>x2 x5 x7 x10
  </code></pre>