如何将Excel数据导出到临时表中 [英] How to export excel data into temp table

查看:470
本文介绍了如何将Excel数据导出到临时表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI


i在Excel文件中有三个库EID,ENAME,DOJ .... Emp.xsl



无法通过Oracle脚本在Temp表中存储这些细节。



请帮助我。

解决方案

从这里开始:如何导入从Excel到Oracle与SQL Developer [ ^ ]


- 以csv格式保存sql文件(demo.csv)

-open notepad并编写代码

LOAD数据

infile'放置csv文件的路径\ demo.cs'

附加到表<表格名称>

字段已终止,可选附加'''

(colum1,colum2 ....)



- 保存文件名为demo1.txt的文件

-run -type sqplus'

类型sqlldr用户名/密码'放置txt文件的路径\demo1.txt'

HI
i have three coulumns EID,ENAME,DOJ in excel file....Emp.xsl

ineed to store these details in Temp table through Oracle Script.

please help me on this.

解决方案

Start here: How to Import from Excel to Oracle with SQL Developer[^]


- save the sql file in csv format(demo.csv)
-open notepad and write the code
LOAD data
infile 'path where csv file is placed\demo.csv'
append into table < table name>
fields terminated "," optional enclosed by ' " '
(colum1,colum2....)

-save the file with file name like demo1.txt
-run -type sqplus'
type sqlldr username/password 'path where txt file is placed\demo1.txt'


这篇关于如何将Excel数据导出到临时表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆