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
Obviously doesn't work this way, but what would be the way to do it in Drizzle?
3 Replies
What does normalize do? Is there an equivalent function in Sql?
Don't think so. It removes accented characters from names
ø -> o for example
you would need to use sql to do it in one call:
if you needed to do it in js then select for update to get the name, calculate new value, update in a transaction