title: sql-how to output data from sql query to excel format
body: <p>I'd like to get the results from a SQL query in Excel format.</p>
  
  <p>For example: </p>
  
  <pre><code>SQL&gt; clear breaks
  breaks cleared
  SQL&gt; clear columns
  columns cleared
  SQL&gt; clear compute
  computes cleared
  SQL&gt; set pagesize 1000
  SQL&gt; set NEWPAGE 1
  SQL&gt; set linesize 100
  SQL&gt; column id format a15
  SQL&gt; column tarikh format a14
  SQL&gt; column jenis_pengguna format a15
  SQL&gt; Ttitle center 'ANALISIS PENGGUNAAN PORTAL BULAN APRIL 2011' skip 1 - center----------------------------------------------------------------------------skip3
  SQL&gt; set linesize 100
  SQL&gt; break on id skip 2 on tarikh
  SQL&gt; compute count of tarikh on id
  SQL&gt; SELECT id, tarikh, jenis_pengguna 
         FROM PENGGUNAAN 
        WHERE tarikh &gt;= (sysdate)-30 
     GROUP BY (id, tarikh, jenis_pengguna);
  </code></pre>
  
  <p>Now, how would I get results that Excel could use or import?</p>