is it possible to run the command below with variable values i.e putting %1, %2 in for the file name
This works fine:
load data local infile c:/contacts.txt into table itextit.import_contacts fields terminated by ',' lines terminated by '\r\n'(%1, surname, mob_number);
but i can't get this working, it is possible
load data local infile %1 into table itextit.import_contacts fields terminated by ',' lines terminated by '\r\n'(%1, surname, mob_number);
This works fine:
load data local infile c:/contacts.txt into table itextit.import_contacts fields terminated by ',' lines terminated by '\r\n'(%1, surname, mob_number);
but i can't get this working, it is possible
load data local infile %1 into table itextit.import_contacts fields terminated by ',' lines terminated by '\r\n'(%1, surname, mob_number);