I'm trying to obtain a value from a column call 'count', and increment the value, then save it again with other information, i have something like this in influx:
var qCount = 'select max(count) from ' + config.name +
' where itemType = \'' + config.data.item + '\'';
db.query(qCount);
count += 1;
When i obtain the value i want to increase it in in one value like, count + 1 and save it to the database.
Is it posible?
Thanks
Aucun commentaire:
Enregistrer un commentaire