I need help with the following ...
I need to update several data at once through my application, but one of the conditions is that the field field in the database is empty because it is the one that will be updated. The field in question is of type DateTime .
Following sql code:
UPDATE fluxo SET saida = SAIDA WHERE data = DATA AND saida = NULL
In this case, I need to update a large number of outputs that have not been populated simultaneously. If I remove the exit = NULL condition it updates all data at once on that date, which should not be done.
Using both NULL and empty quotation marks, the result is the same: nothing happens.
Thank you for your help and attention.