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.

相关推荐
XDHCOM8 小时前
ORA-06521: PL/SQL映射函数错误,权威解析Oracle报错故障修复与远程处理方案
数据库·sql·oracle
仲芒8 小时前
[24年单独笔记] MySQL 常用的 DDL 命令
笔记·mysql·oracle
cyber_两只龙宝11 小时前
【Oracle】Oracle之DQL中WHERE限制条件查询
linux·运维·数据库·云原生·oracle
XDHCOM11 小时前
ORA-00054资源忙故障修复,远程处理Oracle报错解决方案,数据库锁超时NOWAIT指定问题排查
数据库·oracle
lagrahhn12 小时前
Oracle中各个c版本介绍
数据库·oracle
XDHCOM12 小时前
ORA-12445报错:无法更改列隐藏属性,Oracle故障修复与远程处理,网友推荐解决方案
数据库·oracle
HealthScience13 小时前
SpliceVarDB数据集说明
数据库·oracle
l1t13 小时前
DeepSeek总结的PostgreSQL检查点和写入风暴
jvm·postgresql·oracle
HealthScience14 小时前
clinvar数据集说明
数据库·oracle
cyber_两只龙宝15 小时前
【Oracle】Oracle之DQL中SELECT的基础使用
linux·运维·服务器·数据库·云原生·oracle