creating an HTML file with SQL*Plus

Here is an example of creating an HTML file with SQL*Plus:

  1. Create a script, call it runhtml.sql, with the following code:

set ver off

set term off

set markup html on spool on

spool <drive>:\ex1.html

select * from table_name;

select * from table_name;

spool off

  1. Execute this script using:

SQL> @runhtml.sql

  1. Open the output file ex1.html, which, in our example, it is saved on the C:\ drive.

  2. Now you can import this ex1.html in Excel 2000. You do not need to create a csv file anymore. You can also use an html file.

相关推荐
许彰午8 小时前
05-十分钟读懂AWR报告
oracle
whn197714 小时前
oracle的节点2无法启动asm实例 提示PMON terminating the instance due to error 481
数据库·oracle·wpf
沉默de荒年 对月影成15 小时前
机房断电搞崩服务器 | 人大金仓 V8 全量备份跨实例完整恢复实录
运维·服务器·oracle
冰暮流星15 小时前
mysql之数据库创建,查询,删除,启用
数据库·mysql·oracle
light blue bird1 天前
组轴式执行引擎 ✅ 多线程调度组装组件
数据库·信息可视化·oracle·桌面端winform·多节点端·gdi图表绘制开发
William_cl2 天前
WinForms EF Core 上下文频繁释放引发的异常排查与规范方案(MES 项目实录)
服务器·数据库·oracle
许彰午2 天前
01-Oracle 19c静默安装全流程
数据库·oracle
许彰午2 天前
02-Oracle连接池配置实战
数据库·oracle
weixin_538601972 天前
智能体测开Day33
数据库·oracle
中微极客2 天前
Veo视频生成与Gemini Agent平台集成实践
数据库·人工智能·oracle·音视频