The question is not totally obvious, as there are important things we don't know... hence why you were asked for some clarification (even if the code isn't 'easy' for us, it would almost certainly help us, and also make it easier for us to give examples).


My thoughts after reading the first post were that if you are using an SQL statement (with or without parameters) to write to the database, the issue can probably be solved by fairly simple string building. If not, a possible solution is to run an Update afterwards.