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.

相关推荐
一只小bit15 小时前
MySQL 索引:从聚簇到普通索引,如何加快查询效率?
数据库·mysql·oracle
dlhto1 天前
Oracle Linux 9 的 MySQL 8.0 完整安装与远程连接配置
linux·mysql·oracle
bbmmqq1 天前
根据角色ID获取完整角色信息(异步)
数据库·spring·oracle
问道飞鱼1 天前
【数据库知识】PGSQL常见命令行与函数
数据库·oracle·pgsql
xrkhy2 天前
微服务之ShardingSphere
数据库·微服务·oracle
弗朗凌戈2 天前
影院票务管理系统oracle
数据库·oracle·vr
全栈工程师修炼指南2 天前
DBA | Oracle 数据备份迁移之传统 exp/imp 工具实战指南
数据库·oracle·dba
sanggou2 天前
踩坑记录:PDManer 导出 Oracle DDL 默认值成 ‘NULL‘ 字符串的排查与解决
数据库·oracle
yolo_Yang2 天前
【MySQL】mysqldump使用方法
数据库·mysql·oracle
你不是我我2 天前
【Java 开发日记】运行时有出现过什么异常?
数据库·oracle