ORACLE的简单问题.


我有一个文本文档aa.txt 我想把aa.txt的数据导入到数据库里,我的数据库是ORACLE 8.17 Windows2000系统.
aa.txt的每行为一组数据,一行数据内的各列数据以空格隔开.
[116 byte] By [fesxe-想飞的鸟] at [2008-5-25]
# 1
用sqlldr
创建控制文件in.ctl

load data
append
into table table_name
fields terminated by ' '
(
a char(30),
b char(50),
c char(100),
d number
)

文本文件内容格式

10 X5 撒 525 3.4
11 X6 桶 4877 15.5

执行sqlldr username/pw control=c:\in.ctl data=c:\in.txt

mathematician-数学家 at 2007-10-19 > top of Msdn China Tech,专题开发,技术,项目,数据库应用,设计...