postgresql - population csv file into sql -


copy population  '/users/chittampalliyashaswini/documents/population.csv' delimiter ',' csv header; 

i tried running same command. moved population csv documents folder.

this result getting.

error:  invalid byte sequence encoding "utf8": 0x00 context:  copy population, line 1 ********** error **********  error: invalid byte sequence encoding "utf8": 0x00 sql state: 22021 context: copy population, line 1 

in short, there no simple answer question.

as given here , here, postgresql's incapability store data in column want to. ideally should solve going source, , change every instance of such character , take re-dump , use restore target db once again.

the urls given above, both give ways this, albeit agreeably aren't convenient.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -