Oracle to Excel - PL/SQL export procedure

前端 未结 11 1208
轮回少年
轮回少年 2020-12-08 17:56

I’m writing pl/sql procedure that exports data from Oracle to Excel. I need data formatting so I can’t use CSV. I’ve already tried with XML but it generates too large files

11条回答
  •  孤城傲影
    2020-12-08 18:31

    I found this solution on the web (not invented by me), using SQL plus:

    set feed off markup html on spool on
    spool c:\table1.xls
    select * from table1;
    spool off
    set markup html off spool off
    

提交回复
热议问题