mysql select 導出資料 加分隔符,友善生成Excel和利用python進行資料處理。
<code>mysql> </code><code>select</code> <code>ID,VERSION,HEADLINE from news limit 10 INTO OUTFILE </code><code>"/tmp/1.txt"</code> <code>fields terminated by </code><code>'|'</code><code>;</code>
導入資料
lines terminated by '\n'
本文轉自獨彈古調 51CTO部落格,原文連結:http://blog.51cto.com/hunkz/1951700,如需轉載請自行聯系原作者