SELECT * FROM (表名) INTO OUTFILE '/usr/local/test.txt' ;
SELECT * FROM (表名) INTO OUTFILE '/tmp/1.sql' ;