如何将excel导入oracle数据库的教程
时间:2022-11-21 11:04:43
在Excel中录入好数据以后就需要导入到oracle数据库,或许有些朋友不知道该如何做。下面是小编带来的关于如何将excel导入oracle数据库的教程,欢迎阅读!
如何将excel导入oracle数据库的教程:
导入oracle数据库步骤1:oracle数据库有一个student表,现有一个excel表:student.xlsx,需导入oracle数据库student表中。
导入oracle数据库步骤2:student表的拥有者是system,system密码为test
导入oracle数据库步骤3:打开需导入的excel表格,单击office按钮,选择另存为–其他格式
导入oracle数据库步骤4:选择保存路径(置于D:\),保存类型CSV(逗号分隔)(*.csv),设置文件名为student.csv,单击保存
导入oracle数据库步骤5:新建input.ctl文件(置于D:\),内容为:
load data
infile 'd:\student.csv'
append into table student fields terminated by ','
trailing nullcols(id,name,sex,age)
说明:infile后面参数为欲导入的excel表(已转换成csv格式)路径及名称;append在表后追加;table后面跟oracle数据库中的表名称; terminated by ','表示字段分隔符;(id,name,sex,age)表示字段名称列表
导入oracle数据库步骤6:同时按Windows徽标键和R键,打开运行,输入cmd,打开命令提示符,输入命令:
sqlldr userid=system/test@netservicename control=d:\input.ctl
说明:system/test,为oracle数据库表student的所有者及其密码;
@ netservicename为网络服务名;
control是input.ctl文件名称及路径
导入oracle数据库步骤7:进入oracle数据库,查询student表,excel已导入成功
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
将word分栏的方法步骤全解
excel条件格式、套用表格格式,两种方法实现智能添加单元格边框
![](https://img.aspxhome.com/file/2023/8/a142268_0s.gif)
wps文字中如何查看文档字数
![](https://img.aspxhome.com/file/2023/7/53427_0s.jpg)
Excel2016表格中如何制作下拉菜单
在EXCEL的折线图中如何在Y轴画一条基准线
![](https://img.aspxhome.com/file/2023/6/36916_0s.jpg)
excel表格如何求和?计算表格中数字和方法图解
![](https://img.aspxhome.com/file/2023/2/41492_0s.jpg)
关于vba在word文档中插入文字并设置相应的文字属性介绍
熟练使用办公软件是指什么
![](https://img.aspxhome.com/file/2023/5/16785_0s.png)
35个Excel表格的基本操作技巧
excel公式如何在整列或整行中应用?
![](https://img.aspxhome.com/file/2023/7/36937_0s.jpg)
word中如何才能打出"不等号"
![](https://img.aspxhome.com/file/2023/8/21998_0s.jpg)
Excel如何快速把两行数据整理成一行?
![](https://img.aspxhome.com/file/2023/9/55019_0s.gif)
在Word中怎么自动生成和更新目录?
![](https://img.aspxhome.com/file/2023/7/28847_0s.jpg)
word文档中文件怎么插入gif动图
怎样在Excel2013中插入一个Power View图表
![](https://img.aspxhome.com/file/2023/4/36064_0s.jpg)
Word文档怎么给文字添加单双删除线?
![](https://img.aspxhome.com/file/2023/7/23497_0s.png)
Excel2010单元格中显示图表方法
![](https://img.aspxhome.com/file/2023/6/a143636_0s.jpg)
word 如何快速输入特殊线条的方法
![](https://img.aspxhome.com/file/2023/0/32320_0s.png)
Word2010打印时如何显示背景色及图片方法
![](https://img.aspxhome.com/file/2023/2/18812_0s.jpg)
常用的办公软件有哪些 常用的办公软件简介
![](https://img.aspxhome.com/file/2023/0/29550_0s.jpg)