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.

相关推荐
宋发元24 分钟前
数据库的MVCC如何理解?
数据库·oracle
Dnui_King2 小时前
Oracle 深入理解Lock和Latch ,解析访问数据块全流程
数据库·oracle
m0_748233362 小时前
精准删除:掌握SQL中的DELETE语句
数据库·sql·oracle
2501_903238653 小时前
JPA与存储过程的完美结合
数据库·oracle·个人开发
一小路一4 小时前
MySQL 数据库基础
数据库·mysql·oracle
帅的飞起来5 小时前
倒排索引(Inverted Index)
数据库·oracle·mybatis
想做富婆6 小时前
SQL: DDL,DML,DCL,DTL,TCL,
数据库·sql·oracle
喜欢猪猪9 小时前
深入解析MySQL索引:本质、分类、选择及使用原则
数据库·oracle
GreatSQL社区18 小时前
【GreatSQL优化器-15】index merge
数据库·oracle
web150850966411 天前
给SQL server数据库表字段添加注释SQL,附修改、删除注释SQL及演示
数据库·sql·oracle