문제

Is there a way I can export the qry results into a csv or excel file?

도움이 되었습니까?

해결책

You can do it by OUTFILE:
Here is an example of storing the result in CSV file.

SELECT * FROM table_name
INTO OUTFILE '/dir/file.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'

Visit here for more details: http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top