I created a new Postgresql table and I'm having trouble loading a .txt file into that table. I striped the headers out of the text file and tried loading the data but got this error:
ERROR: extra data after last expected column CONTEXT: COPY crd_codes1, line 1: "01 00 000 Alabama 1" SQL state: 22P04
I've included a snapshot of data within the text file in case it helps. Here is the code for the blank table that I created in the database:
CREATE TABLE CRD_codes1
(state char(2),
crd char(2),
county char(3),
crd_name varchar(50),
history_flag char(1));
Any help would be much appreciated!
