2007-08-28
ORACLE 导入文本数据
关键字: oracle sql loader
关于Oracle导入文本数据,按照下面的步骤:
1、首先在数据库中建立数据表,例如:id(varchar(32)),username(varchar(32)),title(varchar(200))
2、生成txt数据文件,数据用制表符分割(tab)
3、编辑一个ctl文件
load date:没什么可解释的,照些
infile:要导入的数据的txt文件,写绝对路径
into tables youtable: into表示新增,append into表示追加
field terminated by X'09':表示分割的符号,X'09'表示制表符
(字段名)
4、sqlldr userid= user/pass@serviceName control=/xxx/input.ctl
1、首先在数据库中建立数据表,例如:id(varchar(32)),username(varchar(32)),title(varchar(200))
2、生成txt数据文件,数据用制表符分割(tab)
3、编辑一个ctl文件
load data infile '/xxx/pet_active_code.txt' into table PET_APPLY fields terminated by X'09' (ID,USERNAME,TITLE)
load date:没什么可解释的,照些
infile:要导入的数据的txt文件,写绝对路径
into tables youtable: into表示新增,append into表示追加
field terminated by X'09':表示分割的符号,X'09'表示制表符
(字段名)
4、sqlldr userid= user/pass@serviceName control=/xxx/input.ctl
发表评论
- 浏览: 101045 次
- 来自: 北京

- 详细资料
搜索本博客
我的相册
IMG_7195
共 46 张
共 46 张
最近加入圈子
最新评论
-
北京太乱了,求你,别来了 ...
深有感触。。。
-- by zisidemao -
【收藏】通过js调用WebSer ...
Where's http://localhost/accountws/servi ...
-- by dayrl -
Xfire在Spring下实现安全 ...
开源否开源社区:http://www.kaiyuanfou.com有更详细的说明
-- by zhongludeng -
Xfire在Spring下实现安全 ...
开源否开源社区:http://www.kaiyuanfouc.com有更详细的说 ...
-- by zhongludeng -
关于EhCache的使用
:o :lol: :cry: :wink:& ...
-- by dsl_0375






评论排行榜