B
B
brar2016-06-06 20:47:10
linux
brar, 2016-06-06 20:47:10

Comparing two csv files and changing values ​​by condition?

There are two csv files.
1st:

Наименование;Артикул;Код;Остаток
Уголь;01ug;00000102;0
Дрова;DR;00000406;9
Торф;TF;00000803;1
Газ;G1Z;00000412;5

2nd
Код;Остаток
00000406;15
00000803;6

Can you please tell me the options on how to overwrite the values ​​of the "residual" column in the first file, taking them from the second. It is even possible by generating a third file, consisting only of those "Codes", the rest of which is updated.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2016-06-06
@brar

I would run through mysql
www.internet-technologies.ru/articles/article_1852.html
www.tech-recipes.com/rx/1475/save-mysql-query-resu...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question