Вопрос

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