http://www.51testing.com/html/77/n-224477.html
使用这篇文章中的第2个方法(ctl脚本)批量插入csv数据,纯粹插入数字时(birthday列 )运行成功,换成文字后(gender列 )报错
说明:oracle字符集为“SIMPLIFIED CHINESE_CHINA.ZHS16GBK”
脚本文件字符集试了 ANSI和UTF-8 均报错
脚本如下:
options (skip=1,rows=10)
load data
infile "D:\user.csv"
append
into table test
fields terminated by ","
optionally enclosed by '"'
trailing nullcols
(
id "seq_b.nextval",
name,
birthday "123",
gender "文字"
)
报错如下:
表结构: