Hi,
this is an update query ...
const stato2 = "F";
msg.topic = "UPDATE ListaSpesa SET Stato = '" + stato2 + "' WHERE Prodotto = 'Beer'"
and it works fine ....
but if I need to set with a variable (string) the condition Where, how it will be the query?
const stato2 = "F";
const prodotto = "Beer";
msg.topic = "UPDATE ListaSpesa SET Stato = '" + stato2 + "' WHERE Prodotto = ?????
I couldn't do it ....