File : /DNC/myphones.csv CONTENTS:
Phone
5555555555
5555555556
SQL -
LOAD DATA LOCAL INFILE '/DNC/myphones.csv' INTO TABLE test
LINES TERMINATED BY '\r\n'
What Comes back back is several warnings and a few skips and one Record makes it into the table a record of 2174563487 - Most of these digits don't exist in the data. Where is this coming from?
csv was created in MSOUTLOOK 2010, Also tried the above with a "test" file written in nano of the same contents.
Any help would be GREATLY appreciated.
UPDATE - Changing the Schema to a VARCHAR(255) Makes this work properly. Could it be reading the CSV file contents as a string instead of as integer? That would explain it not reading the values from the CSV but not where its getting the weird 217 #
Final Update. Since ill never perform mathematical operations on the phone number ive just decided to use a string instead. But thanks everyo e for your help