I'm trying to populate a table using different .txt files, but every time that I want to include or add a new file the previous files get over written, not sure why this is happening.
This how I built the table - I am presuming that is something wrong with the primary key
CREATE TABLE BONDS(
CUSIP varchar(15) NOT NULL,
Price decimal(8,2) NOT NULL,
Spot varchar(15),
Date_Priced varchar(55) not null,
Broker varchar(55) not null,
primary key(CUSIP)
);
This is how I import the .txt file
load data local infile 'c:/temp/test.txt'
into TABLE BONDS
FIELDS TERMINATED BY ';'
Thanks for the help