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 "文字"

 )



报错如下:

图1.jpg

表结构:

图2.png

  • 大橙子🍊    2022-08-29 17:31:27
  • 阅读 1286    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信