데이터베이스/MySQL
MySQL의 데이터 EXPORT
띠리
2007. 5. 21. 11:20
MySQL의 테이블 데이터를 파일로 출력하기
예
mysql> select * into outfile '출력할 파일명'
-> fields terminated by ',' <- 필드를 구분할 기호
-> from 테이블명;
Query OK, 26 rows affected (0.06 sec)
-> fields terminated by ',' <- 필드를 구분할 기호
-> from 테이블명;
Query OK, 26 rows affected (0.06 sec)
예
mysql> select * into outfile 'test_tbl.txt'
-> fields terminated by ','
-> from TEST_TBL;
Query OK, 26 rows affected (0.06 sec)
-> fields terminated by ','
-> from TEST_TBL;
Query OK, 26 rows affected (0.06 sec)