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.

相关推荐
杨云龙UP4 小时前
CentOS Linux 7 (Core)上部署Oracle 11g、19C RAC详细图文教程
数据库·oracle
我科绝伦(Huanhuan Zhou)6 小时前
银河麒麟V10一键安装Oracle 11g脚本分享
数据库·oracle
kura_tsuki18 小时前
[Oracle数据库] Oracle 常用函数
数据库·oracle
码出财富1 天前
SQL语法大全指南
数据库·mysql·oracle
听雪楼主.2 天前
Oracle Undo Tablespace 使用率暴涨案例分析
数据库·oracle·架构
老虎06273 天前
数据库基础—SQL语句总结及在开发时
数据库·sql·oracle
Apple_羊先森3 天前
Oracle数据库操作深入研究:备份、数据删除与性能优化
数据库·oracle·性能优化
好记忆不如烂笔头abc4 天前
另类pdb恢复方式-2
oracle
Menior_4 天前
【补充】数据库中有关系统编码和校验规则的简述
数据库·mysql·oracle
H2122021654 天前
SQLite3库链接与加载问题解决方案
数据库·oracle·sqlite