I am trying to import data from a .csv file to my my postgresql database using pgAdmin. One of the fields in my .csv file is price
and I set its data type as Number
. In my postgresql shcema, I set the data type for price
as numeric
. However, during the upload I keep getting ERROR: invalid input syntax for type numeric: "price"
.
I've tried setting the data type in my .csv file for price as general, accounting, currency, etc. but keep getting the same error. Does anyone have any idea how to fix this?
Note - in the import window of pgAdmin, I set the format to csv
.
Thanks in advance!