I used the following script to import a .csv
file into MySQL using MySQL WorkBench
:
USE test;
LOAD DATA LOCAL INFILE 'exemplo1.csv' INTO TABLE tabela1 fields terminated by ';' lines terminated by '\r';
I've seen a number of other sites using only the LOAD DATA INFILE
command, but my script only works by adding the LOCAL
keyword. Does anyone know what it says it works for? And what is the purpose of being used or not.