I have recently started to use KNIME database option. However, my biggest regret is that we cannot integrate an SQL request to export data into DB with "Database Writer" Node.
Currently, I want to create different tables with a duplicates management system from data entry. If my data is already exist in my table = NO ENTRY. If my data does not exist = ENTRY + Auto increment.
I already know how to do that with SQL and I haven't find the same possibility in KNIME.
You could write the data to a temptable on your server and use the upsert (insert or update) sql command. This will probably depend on what database technology you're using. In SQL server you have the MERGE command, in MySQL you could use REPLACE or INSERT ... ON DUPLICATE KEY UPDATE.
Would be nice if there was a node to do this, though :)
Set IGNORE_DUP_KEY so that the write does not fail. However, for some reason the duplicate rows increment the current value for the identity so that the identity field value gaps.
Read what's already in the database and then use a reference row filter to remove the entries already present, and then write the rest.