我试了一下optionally enclosed by '"'
左边没引号右边有引号:成功,原样导入
111"
222""
333"""
左边有引号右边没引号:失败, second enclosure string not present
"44
""555
"""666
左右有相等的奇数个引号,成功,引号数=2n+1时导入数据带有n个引号
"777"
"""888"""
左右有相等的偶数个引号,失败, no terminator found after TERMINATED and ENCLOSED field
""999""
""""AAA""""
一边奇数一边偶数:失败, 错误信息为上述两种
"BBB""
""CCC"
"""DDD""
""EEE"""
两边不等的偶数:失败, no terminator found after TERMINATED and ENCLOSED field
""FFF""""
""""GGG""
两边不等的奇数:成功,引号数=2n+1时导入数据带有n个引号
"HHH"""
"""III"
总结:要么左边不能带引号;如果有引号左右都必须为奇数个
optionally enclosed by
最新推荐文章于 2022-05-30 09:08:18 发布