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.

相关推荐
消失在人海中9 小时前
oracle sql 语句 优化方法
数据库·sql·oracle
Channing Lewis11 小时前
sql server如何创建表导入excel的数据
数据库·oracle·excel
远方160912 小时前
20-Oracle 23 ai free Database Sharding-特性验证
数据库·人工智能·oracle
Lx35213 小时前
LIKE查询中索引有效利用的前缀匹配策略
后端·sql·oracle
远方160915 小时前
0x-2-Oracle Linux 9上安装JDK配置环境变量
java·linux·oracle
陈丹阳(滁州学院)1 天前
若依添加添加监听容器配置(删除键,键过期)
数据库·oracle
远方16091 天前
14-Oracle 23ai Vector Search 向量索引和混合索引-实操
数据库·ai·oracle
GUIQU.1 天前
【Oracle】数据仓库
数据库·oracle
小袁搬码1 天前
PL/SQLDeveloper中数值类型字段查询后显示为科学计数法的处理方式
oracle·oracle数据库·pl.sqldeveloper
文牧之1 天前
Oracle 审计参数:AUDIT_TRAIL 和 AUDIT_SYS_OPERATIONS
运维·数据库·oracle