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.

相关推荐
大拇指的约定1 小时前
数据库(MySQL):使用命令从零开始在Navicat创建一个数据库及其数据表(三),单表查询
数据库·mysql·oracle
IvorySQL3 小时前
济南站活动回顾|IvorySQL中的Oracle XML函数使用示例及技术实现原理
xml·数据库·sql·postgresql·oracle·开源
董乐,快乐的乐!3 小时前
Study-Oracle-11-ORALCE19C-ADG集群搭建
数据库·oracle
Java Fans6 小时前
Oracle 数据库安装及配置
oracle
AAEllisonPang6 小时前
Oracle 时间计算
数据库·oracle
bug菌¹16 小时前
滚雪球学Oracle[4.2讲]:PL/SQL基础语法
数据库·oracle
逸巽散人16 小时前
SQL基础教程
数据库·sql·oracle
月空MoonSky16 小时前
Oracle中TRUNC()函数详解
数据库·sql·oracle
全栈师18 小时前
SQL Server中关于个性化需求批量删除表的做法
数据库·oracle
bug菌¹20 小时前
滚雪球学Oracle[6.2讲]:Data Guard与灾难恢复
数据库·oracle·data·灾难恢复·guard