문제

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

도움이 되었습니까?

해결책

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

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

HTH

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top