一、新建扩展名为ctl文件
load data
infile 'c:\test.txt'
append into table 表名
fields terminated by '|' (注释:txt文件中的分隔字符)
(字段名1,字段名2,日期 Date'yyyy-mm-dd hh24:mi:ss',字段名4)
二、利用 批处理命令来执行ctl文件
SQLLDR 数据库用户名/密码@服务名 CONTROL=C:\*.CTL LOG=C:\日志.log errors=2000(注释:errors每次生成的错误行数)
load data
infile 'c:\test.txt'
append into table 表名
fields terminated by '|' (注释:txt文件中的分隔字符)
(字段名1,字段名2,日期 Date'yyyy-mm-dd hh24:mi:ss',字段名4)
二、利用 批处理命令来执行ctl文件
SQLLDR 数据库用户名/密码@服务名 CONTROL=C:\*.CTL LOG=C:\日志.log errors=2000(注释:errors每次生成的错误行数)