title: Exporting result of select statement to CSV format in DB2
body: <p>Is there any way by which we can export the result of a select statment to CSV file, just like in MySQL.</p>
  
  <p>MySQL Command;</p>
  
  <pre><code>SELECT col1,col2,coln into OUTFILE  'result.csv' 
  FIELDS TERMINATED BY ',' FROM testtable t;
  </code></pre>