Cannot use Set to increment column value #625
-
This issue was encountered while attempting to use In order to increment the value of an INT or BIGINT in a column in PostgreSQL, I can use:
The challenge is that Bun's I'm assuming I'm missing something, so I'd appreciate pointers around the recommended approach for incrementing or decreasing column int values as part of an Update |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
q.Set("col = col + ?", 1)
orq.Set("col = ?", bun.Safe("col + 1"))