sqlldr导入实战

导入文本为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)



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值