2022-04-11 09:58:40 +00:00
|
|
|
LOAD DATA LOCAL INFILE ?
|
2022-06-03 10:44:39 +00:00
|
|
|
INTO TABLE `edi`.`item`
|
2022-04-11 09:58:40 +00:00
|
|
|
FIELDS TERMINATED BY ';'
|
|
|
|
LINES TERMINATED BY '\n' (@col1, @col2, @col3, @col4, @col5, @col6, @col7, @col8, @col9, @col10, @col11, @col12)
|
|
|
|
SET
|
|
|
|
id = @col2,
|
|
|
|
product_name = @col4,
|
|
|
|
name = @col5,
|
|
|
|
plant_id = @col7,
|
|
|
|
group_id = @col9,
|
|
|
|
entry_date = STR_TO_DATE(@col10, '%Y%m%d'),
|
|
|
|
expiry_date = IFNULL(NULL,STR_TO_DATE(@col11, '%Y%m%d')),
|
|
|
|
change_date_time = STR_TO_DATE(@col12, '%Y%m%d%H%i')
|