I’m using to add csvs files in my table:
load data local infile 'path/file.csv' into table table_name fields terminated by ';' enclosed by '"' ignore 1 lines;
But I have a folder with a date where I save this file. I create a folder each day with the date as a name. How can I add this date to be recognized alone?
I tried something like this (like in VBA), but I recived an error message:
'path/' & format(now(),"dd") & '/' & format(now(),'mm') & format(now(),'yyyy') & '/file.csv'
Can anyone help me?
Could it be that there are mixed double-quotes and single quotes?
‘path/’ & format(now(),”dd”) & ‘/’ & format(now(),’mm’) & format(now(),’yyyy’) & ‘/file.csv’
“dd” vs ‘mm’ vs ‘yyyy’
Also, what error are you getting?