Basic load, there's lots more options for column delimiters, line delimiters, etc...LOAD DATA INFILE '/tmp/mydata.txt' INTO TABLE Test;I'm don't think any of this stuff will be interesting to anyone else, but it's just a place for me to write down things I want to remember. :-)
Basic load, there's lots more options for column delimiters, line delimiters, etc...LOAD DATA INFILE '/tmp/mydata.txt' INTO TABLE Test;xxd. To do this, open your file in Vim and run :%!xxd. From here you can change the hex values and, when you’re done, run :%!xxd -r to convert back.
SELECT * INTO OUTFILE '/tmp/sale.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM sale