我正在将文件中的数据导入csv
到postgres db
使用pgadmin 4
Everything 中,但是当我尝试导入包含此类数据的文件时出现问题
“不是 Zand,Vlotbrug”</p>
“Dussen, `t Middeltje”</p>
如您所见,数据包含
`
和
'
我也尝试使用 utf-8 编码导入文件,但不能。
任何人都知道如何解决这个问题?
更新
结构:
stop_id,stop_code,stop_name,stop_lat,stop_lon,location_type,parent_station,stop_timezone,wheelchair_boarding,platform_code,zone_id
数据:
stoparea:123953,,"De Zande, 'Koelucht'",52.5184475,5.956368,1,,,0,,
错误:
ERROR: unterminated CSV quoted field
CONTEXT: COPY stops, line 69400: "stoparea:123953,,"De Zande, 'Koelucht'",52.5184475,5.956368,1,,,0,,
stoparea:120536,,"Poortvliet, Zu..."
更新 2
命令:
"/Applications/pgAdmin 4.app/Contents/SharedSupport/psql" --command " "\copy transit.stops (stop_id, stop_code, stop_name, stop_lat, stop_lon, location_type, parent_station, stop_timezone, Wheelchair_boarding, platform_code, zone_id) FROM ' /Users/tvtan/Desktop/gtfs-nl/stops.txt'DELIMITER','CSV HEADER QUOTE '\"' ESCAPE '''';""
用户界面: