SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'FIELDS TERMINATED BY ',' OPCIONALMENTE INCLUÍDOS POR '"'LINES TERMINATED BY '\n'FROM test_table;