mysql 導出 csv格式數據

案例;code

SELECT hotel_code,rate_plan_code,list_price,tab_rate_plan.end FROM tab_rate_plan  
INTO OUTFILE 'C:\\Users\\Administrator\\Desktop\\hotelPrice.csv'  
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"'  
LINES TERMINATED BY '\r\n'; csv

相關文章
相關標籤/搜索