Skip to content
Advertisement

Add on to an existing value in a field

In MySQL I would do something along the lines of

I tried the following but after a bunch of searching I wasn’t able to find how to do the same in postgresql

so my question is how would I go about adding a number to the previous value of a field (BIGINT)

Advertisement

Answer

You have to catch the value from the variable EXCLUDED:

Or if you only want to get the current value of a certain column:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement