Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql load data infile csv

LOAD DATA LOCAL INFILE 'abc.csv' INTO TABLE abc
FIELDS TERMINATED BY ',' 
ENCLOSED BY '"' 
LINES TERMINATED BY '
'
IGNORE 1 LINES
(col1, col2, col3, col4, col5...);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #load #data #infile #csv
ADD COMMENT
Topic
Name
2+1 =