Back

incrementing values within table field

  • 0
  • Databases
  • Cloud
guido
11 Jun, 2024, 15:53

is there a way to programatically increment the value of a field in a table or do we have to grab the value, save the old value as a variable, assign it the new value (var += 1) and update the variable?

TL;DR
Developers are inquiring about how to programatically increment the value of a field in a table. The solution suggested is to retrieve the current value, store it as a variable, increment the variable by one, and then update the field with the new value.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more