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.

相关推荐
剑客狼心7 小时前
Oracle:什么是存储过程
数据库·oracle
mah66610 小时前
SpringBoot项目连接Oracle视图报错整理
spring boot·后端·oracle
weixin_3077791314 小时前
Python Pandas带多组参数和标签的Oracle数据库批量数据导出程序
数据库·python·oracle·pandas
yqcoder16 小时前
Express + MongoDB 实现更新用户时用户名变化验证数据库是否存在,不变不验证
服务器·数据库·oracle
m0_7482352418 小时前
MySQL四种备份表的方式
mysql·adb·oracle
汤汤upup19 小时前
面试八股文--数据库基础知识总结(1)
数据库·sql·oracle
灰色人生qwer19 小时前
数据库的常见权限作用
数据库·oracle
北珣.1 天前
MySQL增删改查(进阶)
数据库·mysql·oracle
Albert Tan1 天前
Oracle Fusion Middleware 12C安装 - 呆瓜式
oracle·中间件·数据库架构
一抓掉一大把1 天前
sql server笔记
数据库·笔记·oracle