例句:
select * from table_name into outfile '/tmp/tmp.csv' fields terminated by ',';
詳解:
① into outfile '/tmp/tmp.csv' 指定導出文件的目錄和文件名
② fields terminated by ',' 將數據以逗號“,”隔開