I have to import a CSV file into MySQL table. The file and the table have the same structure (columns and types of values). The import should happen with following algo:
- read a line from the file,
- compare values from column X (file) with column X (db table),
- import line, if the value in the file is higher, than the value in the db table.
The question is, slightly off-topic: how is it possible to automate this kind of import? Are there tools doing such? Or is PhpMyAdmin enough - create temporal table, put the file into it, compare and import?