mysql之select into outfile

weixin_34162629發表於2014-12-30

參見:http://dev.mysql.com/doc/refman/5.1/en/select-into.html

例子:

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

 

相關文章