The table is empty before load statement is executed
do a select * from code_protocol;
only entry is line with null values for all columns/fields
To test the error I created from excel by saving a comma delimited *.csv file
The csv file has only one entry/row and I am only loading primary key and one other column.
load data infile 'c:/wamp64/tmp/code_protocol1.csv'
into table code_protocol
FIELDS terminated by ','
enclosed by '"'
lines terminated by '\r\n'
ignore 1 rows
(protocol_id, protocol_disc
);
what am I doing wrong?
do a select * from code_protocol;
only entry is line with null values for all columns/fields
To test the error I created from excel by saving a comma delimited *.csv file
The csv file has only one entry/row and I am only loading primary key and one other column.
load data infile 'c:/wamp64/tmp/code_protocol1.csv'
into table code_protocol
FIELDS terminated by ','
enclosed by '"'
lines terminated by '\r\n'
ignore 1 rows
(protocol_id, protocol_disc
);
what am I doing wrong?