title: SQL Batch script is not working
body: <p>I am having trouble creating a .sql batch file that can execute a select statement on SQL Developer.</p>
  
  <p>This is my code:</p>
  
  <pre><code>set pagesize 500
  spool  @c:\temp\output.log
  set echo on 
  
  SELECT OBJECT_NAME 
  FROM DBA_OBJECTS
  WHERE OBJECT_TYPE = 'TABLE'
  AND OWNER = 'DWBATCH'
  GROUP BY = 'OBJECT_NAME'
  
  spool off
  </code></pre>
  
  <p>The script will display the original output, and the select statement is not being executed. I will appreciate any input to what is wrong with this script, since it should work according to my knowledge.</p>