title: PostgreSQL COPY command - how to write query in more than one line
body: <p>I'm using the <code>PostgreSql</code> database. I want to select some data from database and copy it in a <strong>csv</strong> file. And this works:</p>
  
  <pre><code>\COPY (SELECT * from table) TO '/csv_dir/csv_file.csv';
  </code></pre>
  
  <p>My problem is that it works only if the whole command is in one line only. How can I write the COPY command in more than one line? This sql is what I want to put in more rows.</p>