© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to reuse values within update().set() ? How to increment int? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
3 replies
Mick
How to reuse values within update().set() ? How to increment int?
How may I reuse values from the current item within
.update
.set
(
)
? E
.g
. how can I do the following PostgreSQL query
?
UPDATE totals
SET total = total + 1
WHERE name = 'bill';
UPDATE totals
SET total = total + 1
WHERE name = 'bill';
The docs has barely any informations about
.update()
.update()
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,959
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
how to set default null to an int column
DT
Drizzle Team / help
3y ago
How to increment field in PG
DT
Drizzle Team / help
3y ago
how to get auto increment to work sqlite
DT
Drizzle Team / help
2y ago
Float values get casted to int while reading from DB
DT
Drizzle Team / help
3y ago