2011年3月15日 - 假設您已把select 的語法寫在output.sql 檔, 然後執行: mysql -u user -p dbname < output.sql > result.txt result.txt 就如同您問題中的資料內容。
ithelp.ithome.com.tw