Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Teamβ€’3y agoβ€’
5 replies
Meexa

Update column A with the value of column B

I want to update column B with an updated value of column A

So, something like this
db
    .update(characters)
    .set({
      normalized_name: normalize(characters.name),
    })
db
    .update(characters)
    .set({
      normalized_name: normalize(characters.name),
    })

Obviously doesn't work this way, but what would be the way to do it in Drizzle?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to plus 1 to the current value of a column when update
Drizzle TeamDTDrizzle Team / help
3y ago
A way to use the update function with existing value in json blob column?
Drizzle TeamDTDrizzle Team / help
2y ago
Update number column with it's current value and new number
Drizzle TeamDTDrizzle Team / help
3y ago
A way to use the update function with existing value in row?
Drizzle TeamDTDrizzle Team / help
3y ago