Skip to content

Instantly share code, notes, and snippets.

@elidickinson
Created March 7, 2009 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elidickinson/75187 to your computer and use it in GitHub Desktop.
Save elidickinson/75187 to your computer and use it in GitHub Desktop.
load data local infile 'c:/fierce/fwe_opens.csv' ignore into table opens fields
TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
lines terminated by '\n'
(email,@check_time,@last_open,total_opens)
set mlid = 102866,
check_time = from_unixtime(@check_time),
last_open = if(@last_open<=0,NULL,date(from_unixtime(@last_open)))
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment