SELECT order_id,product_name,qty FROM ordersse pueden usar modificadores para alterar el comportamiento al guardar:
INTO OUTFILE '/tmp/orders.txt'
SELECT order_id,product_name,qty FROM orders
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'