excel数据导入oracle表

 

 

1、在excel第一行,将列数据和表列名对应

2、以目标表,重复新建一个临时表。

无则新建:

drop table test_20180613;

create table test_20180613 (

col1 integer,

colname varchar2(100),

coldate varchar2(100));

 

有则临时copy

create table test_20180613 select * from  test_20180612 where 1=0;

3、将excel令存为 txt文件

4、用PLSQL连上表所在数据库

选择 toolsàtext import

 

 

5、选择倒入文件,

倒入后,默认出来

       

如果数据符合预期

6、切入到Data to Oracle的table

选择表名,选择excel字段和表字段对应关系,之后,点击import

开始倒入

执行完后,有时间和条数。操作完成。

 

7、查询数据库,看结果。

数据总量 也符合要求。