Skip to content

How to add to an existing value using UPDATE? #1140

Answered by simolus3
Guoyuer asked this question in Q&A
Discussion options

You must be logged in to vote

Sure:

update(table).write(YourTableCompanion.custom(quantity: table.quantity + const Constant<int>(3)));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Guoyuer
Comment options

Answer selected by Guoyuer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants