python - CSV to Postgres database: "Error: extra data after last expected column" -


i trying convert .csv file postgres database. have set database appropriate number of columns match .csv file. have taken care strip "," (comma characters) .csv file.

here command typing psql:

copy newtable 'path/to/file.csv' csv header; 

i have tried can think of. idea how fix this?


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -