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