Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3724

how to automate 'load data infile' by passing the path & table name as variables (no replies)

$
0
0
how to automate 'load data infile' by passing the path & table name as variables
eg:
LOAD DATA LOCAL INFILE 'tablepath'
REPLACE INTO TABLE tablename
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\r\n'
IGNORE 0 LINES;
I tried pass this as string & execute it, but execute won't work in load data infile. Any other suggestions to do the task?

Thanks,
ak

Viewing all articles
Browse latest Browse all 3724

Trending Articles



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