标签:
1.新建文件test.ctl,内容如下
load data infile ‘vodall.csv‘ append into table zjsm.vod_record_all fields terminated by ‘\t‘ trailing nullcols ( virtual_column FILLER, watch_time "to_date(substrb(:watch_time,1,19),‘YYYY-MM-DD HH24:MI:SS‘)", device_id, program_id, program_name, program_type, watch_duration number, //默认是character类型 program_providername )
说明:
2.运行(cmd)命令行,进入test.ctl所在的路径,输入
sqlldr zjsm/mima@databaseName control=test.ctl
即可导入。会在该路径下生成日志。有问题可查询日志文件。
标签:
原文地址:http://www.cnblogs.com/longzhongren/p/4329496.html