UPDATE mytable SET a = a * -1;
This multiplies all the values ββin 'a' by -1. Now, if the value is already negative, it will become positive. You want them to always be negative, do the following:
UPDATE mytable SET a = a * -1 WHERE a > 0;
source share