2022-04-11 09:58:40 +00:00
|
|
|
LOAD DATA LOCAL INFILE ?
|
2022-06-03 10:44:39 +00:00
|
|
|
INTO TABLE `edi`.`genus`
|
2022-04-11 09:58:40 +00:00
|
|
|
FIELDS TERMINATED BY ';'
|
|
|
|
LINES TERMINATED BY '\n' (@col1, @col2, @col3, @col4, @col5, @col6)
|
|
|
|
SET
|
|
|
|
genus_id = @col2,
|
|
|
|
latin_genus_name = @col3,
|
|
|
|
entry_date = STR_TO_DATE(@col4, '%Y%m%d'),
|
|
|
|
expiry_date = IFNULL(NULL,STR_TO_DATE(@col5, '%Y%m%d')),
|
|
|
|
change_date_time = STR_TO_DATE(@col6, '%Y%m%d%H%i')
|