Created
October 18, 2012 12:11
-
-
Save DisplayName/3911415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD DATA LOCAL INFILE '/home/ubuntu/dev/5016/csv/customers.csv' INTO TABLE tmp_5016 | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
lines terminated by '\n' | |
(client_id, name, @first_name, @last_name, title, phone1, @c1, fax1, email, | |
address1, address2, city, state, zip, phone2, fax2) | |
set | |
first_name = if(length(@first_name) = 0, null, first_name), | |
last_name = if(length(@last_name) = 0, null, last_name), | |
location_id = null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment