미분류
CSV파일을 MySQL로 Import 시키기
CodeDiver
2016. 6. 7. 16:32
1. 테이블 생성
2. csv 파일 생성 (인코딩은 utf-8로)
3. 아래 쿼리 실행
load data local infile 'D:/1.csv' into table 테이블명 fields terminated by ',' enclosed by '"' lines terminated by '\n'