SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
    COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
    LINES TERMINATED BY '\n'
    FROM test_table;