Quantcast
Channel: MySQL Forums - Backup
Viewing all articles
Browse latest Browse all 537

Load data infile (1 reply)

$
0
0
HI,

i want to use file name as variable in load data infile

how can i do that ?

below is not working ... plz help me



SET s1=concat('E:/Backup/data-', DATE_FORMAT(curdate(), '%d-%m-%Y'),'.csv');


LOAD DATA INFILE 's1' IGNORE INTO TABLE data FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';

Viewing all articles
Browse latest Browse all 537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>