문제

My table column in decimal format like this My column value is:

   4523
   1236.23
   1240.5
   2535.2

I would like to this format:

   4523.00
   1236.33
   1240.50
   2535.20

Thanks.

도움이 되었습니까?

해결책

to_char.

SELECT to_char(1231.123, '9999999999.00');

See: data type formatting functions.

The manual is your friend.

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