I'm importing a csv file using LOAD DATAINFILE
The csv columns are NAME,TYPE,STATUS
my table structure is
Name : varchar TYPE : Varchar Status: Tiny int default value 1
I use this stmt :
LOAD DATA INFILE '/var/www/names.csv'
INTO TABLE users FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES
When I use the above statement it has to insert the status value as 1 for each row, but it is not inserting the same. Please advise.
' 'line terminators instead of'\n'- Michael BerkowskiSTATUScolumn for records that are being incorrectly inserted? - eggyalStatuscolumn the same value in table after loading all data. - Ynjxsjmh