mysql之select into outfile

参见: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;

 

posted @ 2014-12-30 09:20  冷冰若水  阅读(429)  评论(0编辑  收藏  举报