sqlldr导入实战

前端之家收集整理的这篇文章主要介绍了sqlldr导入实战前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

导入数据库为oracle12.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)
原文链接:https://www.f2er.com/oracle/211937.html

猜你在找的Oracle相关文章