2012/11/26

MySQLへのCSV取り込み

MySQLへのCSV取り込み. mysql> load data infile "/tmp/hoge.csv" replace into table table_name FIELDS terminated by ',' lines terminated by '\r\n' ignore 1 lines; ignoe 1 linesで1行目無視. terminated '¥r¥n'は環境による.