Answers for "import txt files to database"

1

how to import text file into database

LOAD DATA LOCAL INFILE '/tmp/foo.txt' INTO TABLE foo
FIELDS TERMINATED BY 't' LINES TERMINATED BY 'n'
(@col1,@col2,@col3) set myid=@col1,mydecimal=@col3;
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language