Technology/Database
MySQL / 결과를 파일(텍스트, CSV)로 생성하기
Yonglae Cho
2009. 10. 21. 22:33
Mysql 결과를 파일로 저장
select * from TABLE into outfile '파일경로' fields terminated by ',';
ex) select * from test into outfile '/home/my/test.txt' fields terminated by ',';
파일경로 = 파일이 저장될 경로
terminated by ',' = 콤마(,)로 결과를 구분