I've successfully created the following table:
CREATE TABLE tampadocs (
fname varchar(255),
lname varchar(255),
pracName varchar(255),
address varchar(255),
city varchar(255),
state varchar(255),
zip varchar(255),
spec varchar(255),
phone varchar(255),
totalMD integer,
avgPt integer,
mdName varchar(255),
notes varchar(255));
Then run the following to import data from a CSV to the table:
COPY tampadocs
FROM 'C:\Users\bam\Desktop\tampadocs.csv' DELIMITERS ',' CSV;
I receive the following error:
ERROR: invalid input syntax for integer: "Total MDs"
CONTEXT: COPY tampadocs, line 1, column totalmd: "Total MDs"
I've looked at each value in the Total MDs column but they are just numbers, so I'm not sure what I'm missing. Any help would be greatly appreciated!