본문 바로가기

Web/MySQL

import csv

 

https://www.mysqltutorial.org/import-csv-file-mysql-table/#:~:text=Importing%20CSV%20file%20using%20MySQL%20Workbench&text=The%20following%20are%20steps%20that,which%20the%20data%20is%20loaded.&text=Review%20the%20data%2C%20click%20Apply,insert%20data%20into%20the%20table.

 

Import CSV File Into MySQL Table

This tutorial shows you how to use LOAD DATA INFILE statement to import CSV file into MySQL table.

www.mysqltutorial.org

1. table만들고

2. 

LOAD DATA INFILE  
'C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/CSV파일.csv' 
INTO TABLE 테이블 
FIELDS TERMINATED BY ','
IGNORE 1 ROWS;

'Web > MySQL' 카테고리의 다른 글

LOAD DATA "Invalid utf8mb4 character string  (1) 2021.05.24