原创:如何用toad导入excel报表

[复制链接]
查看11 | 回复9 | 2007-10-20 08:38:44 | 显示全部楼层 |阅读模式
经常有人问excel报表如何导入到oracle里,toad提供了这个功能,我们来做个简单的实验,一步一步把excel报表导入到oracle里。
一:
先建立个测试的excel报表test.xls(图1)



(图1)
二:在scott用户下建立一test表
[oracle@hundsun ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 6 19:33:52 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
idle> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 75499764 bytes
Database Buffers 88080384 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
idle> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@hundsun ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 6 19:34:21 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
sys@NIUGE> conn scott/tiger
Connected.
scott@NIUGE> create table t(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int);
create table t(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int)

*
ERROR at line 1:
ORA-00955: name is already used by an existing object

scott@NIUGE> c /t(/test(/
1* create table test(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int)
scott@NIUGE> r
1* create table test(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int)
Table created.
scott@NIUGE> select * from test;
no rows selected

回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
图片不太好看,下载后放大看,稍后我放个word文档上来
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
thank for your share!
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
这个功能确实不错,我也经常用,只是小数据量还可以,多一点就实在太慢了!
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
前两天刚我做过,有一些截图保存在word文挡,不过有些乱
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
不错不错,但是感觉还是PL/SQL DEVELOPER里面使用复制,粘帖比较方便!
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
不错!学习!谢谢啊!
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
我用excel直接导数据,在preview数据时总是显示不出数据,但是用txt直接导就没问题,不知道是什么原因
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
非常感谢!!!!学习中。。。。。。。。。。。。。。。。。。。
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
这是我整理的文档,欢迎下载



如何用toad导入excel报表.rar(273.65 KB, 下载次数: 178)2007-12-7 10:20 上传点击文件名下载附件
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行