I am loading a csv file to create a new table with a column containing a decimal value of 1.449043781.
Here's my code
CREATE TABLE table (
v1 float
);
Postgres spits out an error saying invalid input syntax error for type numeric even though the value is a float. I have tried changing the data type declaration to decimal(15,13) to no avail. What am I missing here?
Thank you for your input.
'v1'as a number. The fact that the column namev1appears in the CSV itself suggests that your file has a header row, and the fact that yourCOPY INis trying to interpret this row as data means you neglected to specify theHEADERoption. - Nick Barnes