title: SQL*Plus - Spool CSV - SP2-0734: unknown command beginnin
body: <p>When I launch the following task .cmd : </p>
  
  <pre><code>sqlplus -s User/Password@database @Query.sql 'G:'
  </code></pre>
  
  <p>I get this error : </p>
  
  <pre><code>SP2-0734: unknown command beginnin
  </code></pre>
  
  <p>Even adding set <code>sqlblanklines on</code> it failed.</p>
  
  <p>With a simple query like <code>select * from table1</code> it works.</p>
  
  <p>With a more complex query ( multiple join, group by) it does not work => Even if the file is well generated. Inside the file, I  just find errors details.</p>
  
  <p>Please find below more details about the issue : </p>
  
  <pre><code>SP2-0734: unknown command beginning "FROM NOTI...." - rest of line ignored.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0044: For a list of known commands enter HELP
  and to leave enter EXIT.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0734: unknown command beginning "INNER JOIN..." - rest of line ignored.
  SP2-0044: For a list of known commands enter HELP
  and to leave enter EXIT.
  SP2-0734: unknown command beginning "LEFT JOIN ..." - rest of line ignored.
  SP2-0734: unknown command beginning "LEFT join ..." - rest of line ignored.
  SP2-0734: unknown command beginning "LEFT join ..." - rest of line ignored.
  SP2-0734: unknown command beginning "LEFT JOIN ..." - rest of line ignored.
  SP2-0044: For a list of known commands enter HELP
  and to leave enter EXIT.
  SP2-0734: unknown command beginning "LEFT join ..." - rest of line ignored.
  SP2-0734: unknown command beginning "LEFT join ..." - rest of line ignored.
  SP2-0734: unknown command beginning "WHERE NOTI..." - rest of line ignored.
  SP2-0734: unknown command beginning "GROUP BY N..." - rest of line ignored.
  SP2-0044: For a list of known commands enter HELP
  and to leave enter EXIT.
  SP2-0734: unknown command beginning ",table1..." - rest of line ignored.
  SP2-0734: unknown command beginning ",table2..." - rest of line ignored.
  </code></pre>