We Recommend

SQL Cookbook SQL Cookbook
Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.


Posted By

Abe on 01/11/08


Tagged

csv sql


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

vilebender
mh5777


Load CSV file to SQL DB


Published in: SQL 


  1. LOAD DATA LOCAL INFILE 'file.csv' INTO TABLE `locations` FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\ r\ n'

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: Abe on January 24, 2008

You need to login to post a comment.