SELECT * FROM mytable LIMIT 0,100 INTO OUTFILE '/tmp/test.txt';LOAD DATA INFILE '/tmp/test.txt' INTO TABLE mytable;