sqlldr导入实战

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ytfy12/article/details/53045545

导入文本为sups.csv,windows下编辑的,编码为ansi

导入数据库为oracle 12.1.0.2.0 字符集为 AL32UTF8

注意:第一行跳过,字符集,字段分割,空白字段处理,单个字段默认最大255字符

控制文件: sups.ctl

options (skip=1,rows=128,errors=2)
load data
--characterset 'utf8'
characterset 'ZHS16GBK'
infile   'sups.csv'
truncate into table hub.supplier_imp_sit_tmp
fields terminated by ','
--fields terminated by X'07'
--fields terminated by whitespace
--fields terminated by X'09'
optionally enclosed by '"'
trailing nullcols
(excel_no,
bj_supplier,
supplier,
sup_name,
sup_name_secondary,
supplier_parent,
contact_name,
contact_phone,
contact_fax,
contact_pager,
sup_status)



猜你喜欢

转载自blog.csdn.net/ytfy12/article/details/53045545
今日推荐