title: Export to a csv file
body: <p>I try many times to export my result into .csv file but I'm always fail. I read lot of articles related in my problem. </p>
  
  <p>Look at my query:</p>
  
  <pre><code>spool sample.csv
  
  SELECT /*html*/(CODE_SALESROOM) POS_ID, (NAME_SALESROOM) POS_NAME
  FROM OWNER_DWH.DC_SALESROOM
  WHERE CODE_SALESROOM NOT IN ('XAP', 'XNA', '10001');
  
  spool off;
  </code></pre>
  
  <p>The output of this, when I export in a csv file is only the query not the real result.</p>
  
  <p>What's wrong in my command to export the result?</p>
  
  <p>Please help me. Thanks</p>