postgresql - pgadmin importing csv file errors -


i'm using pgadmin 1.18. have copy of table truncated. want load import csv file looks this:

20151228,12/28/2015,53,12,december,4,2015,1,monday 20140828,08/28/2014,35,8,august,3,2014,4,thursday 20150208,02/08/2015,6,2,february,1,2015,7,sunday 

i'm getting error: data after last expected column context: copy tblname, line 1: "20151228,12/28/2015,53,12,december,4,2015,1,monday"

this first line trying import. suggestions fix this?

from comments appears using wrong function in pgadmin.

if have existing table, have truncated , wish load csv file, select table , use tools => import, select file , choose format 'csv'.

there other options in import dialog allow skip specified columns, use different quoting options, , specify how deal null values.

one tip trips me up: make sure there no blank line @ end of file.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -