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.

相关推荐
IT邦德5 小时前
Oracle 26ai DataGuard 搭建(RAC到单机)
数据库·oracle
刘一说10 小时前
Java 中实现多租户架构:数据隔离策略与实践指南
java·oracle·架构
tryCbest10 小时前
Oracle查看存储过程
数据库·oracle
IT邦德11 小时前
OEL9.7 安装 Oracle 26ai RAC
数据库·oracle
Goat恶霸詹姆斯1 天前
mysql常用语句
数据库·mysql·oracle
xiaowu0801 天前
C# 拆解 “显式接口实现 + 子类强类型扩展” 的设计思想
数据库·oracle
Apple_羊先森1 天前
ORACLE数据库巡检SQL脚本--19、磁盘读次数最高的前5条SQL语句
数据库·sql·oracle
蚕豆哥1 天前
【2026马年重启】我的 Primavera P6/Unifier 技术笔记,继续更新!
ai·oracle·项目管理·unifier·p6·进度管理·甲骨文
认真的薛薛1 天前
数据库-sql语句
数据库·sql·oracle
IT邦德1 天前
RPM包快速安装Oracle26ai
数据库·oracle