0

Hello experts I need to update next column value with divisible by 100I need to update value Of B column in C column as shown in figure in postgresql

1 Answer 1

0

You can use the Modulo operator, something along these lines:

UPDATE YourTable
SET NewBalance = Balance - (Balance % 100);

HTH

1
  • 1
    Thank you sir I solved my problem with the help of your answer. Commented Dec 14, 2018 at 3:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.