------解决方案--------------------
语句.sql内容 select 1 from dual;
c.sql 文件内容 set trimspool on set linesize 500 set heading on set term off verify off feedback off pagesize 20000 set markup html on entmap ON spool on preformat off spool C:\文件.xls @语句.sql spool off exit