当前位置:Gxlcms > 数据库问题 > Oracle10g通过sqlplus导出excel

Oracle10g通过sqlplus导出excel

时间:2021-07-01 10:21:17 帮助过:24人阅读

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结果

Oracle10g通过sqlplus导出excel

标签:oracle10g通过sqlplus导出excel

人气教程排行