Oracle10g通过sqlplus导出excel
1、创建脚本:
cd/home/oracle/bristol
vim a1.sql
set linesize 200
set term off verify off Feedback off pagesize 999
set markup html on entmap ON spool on preformat off
spool /home/oracle/bristol/tables.xls
@/home/oracle/bristol/get_tables.sql
spool off
exit
vim a2.sql
select * from CHANNELTYPE;
2、执行并获得输出
sqlplus "test/test" @/home/oracle/bristol/a1.sql
3、下载输出的excel结果
原文链接:https://www.f2er.com/oracle/208003.html