python - DataError: unterminated CSV quoted field -
i'm trying import huge (~2 gb) csv file postgres. below query wrote (in python) this:
q= ("copy {db} '{d}\\{file}' (format csv, null 'null', header) ;").format(d = directory, db = db_name, file =fname) now somewhere on line 17632150there integer field starts quotation, not closed:
"2195961,12855,628,no i wonder options @ point? constraint should possible psycopg2.
Comments
Post a Comment