title: How to export SQL results to CSV from an SQL script using DB2 database?
body: <p>I want to store my Query results in an csv outfile using SQL script. Can someone help me with an SQL script which can store the results in an CSV file. I'm using db2 database. </p>
  
  <p>Thanks in advance!</p>