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.

相关推荐
Linsk9 小时前
Java和JavaScript的关系真是雷峰和雷峰塔的关系吗?
java·javascript·oracle
七夜zippoe17 小时前
DolphinDB分区策略:VALUE分区详解
数据库·oracle·分区·value·dolphindb
NCIN EXPE20 小时前
MySQL--》理解锁机制中的并发控制与优化策略
数据库·mysql·oracle
Lyyaoo.21 小时前
缓存穿透/雪崩/击穿
数据库·缓存·oracle
byoass1 天前
企业云盘与设计软件深度集成:AutoCAD/Revit/SolidWorks插件开发与API集成实战
服务器·网络·数据库·安全·oracle·云计算
晴天¥2 天前
Oracle体系结构之物理存储结构(控制、数据、参数、密码、重做日志等文件)
数据库·oracle
大江东去浪淘尽千古风流人物2 天前
【UV-SLAM】eLSD/LBD 数据维度 UV-SLAM吸收借鉴
数据库·线性代数·oracle·矩阵·uv·augmented reality
FreeGo~2 天前
【MySQL数据库】数据库基础第一篇
数据库·mysql·oracle
TeDi TIVE2 天前
MySQL四种备份表的方式
mysql·adb·oracle
大迪deblog2 天前
系统架构师-数据库-数据库设计
数据库·oracle·系统架构