Quantcast
Viewing all articles
Browse latest Browse all 3724

CSV import after comparison of file with db (1 reply)

I have to import a CSV file into MySQL table. The file and the table have the same structure (columns and types of values). Is it possible to accomplish this import using Workbench, if the import goes according to the following algo:


1. read a line from the file
2. compare values from column X (file) with column X (db table)
3. import line (overwrite db state), if the value in the file is higher, than the value in the db table

Is there any option to run a query on import or to adjust an import wizard anyhow to do such comparison?

Viewing all articles
Browse latest Browse all 3724

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>