Quantcast
Channel: Niroze's Weblog » mysql
Viewing all articles
Browse latest Browse all 4

Import CSV data into to MySQL database

$
0
0
Import CSV to MySQL A simple in-built command to import whole CVS data to mysql database 1 LOAD DATA LOCAL INFILE 'd:\\\my_file.csv' 2 into TABLE table_name 3 FIELDS TERMINATED BY ',' 4 LINES TERMINATED BY '\n' 5 (field1,field2,field3) Note: table column should be as tat of cvs file “\\\” is important, keep it as it is [...]

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images