Pergunta

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.

Foi útil?

Solução

to_char.

SELECT to_char(1231.123, '9999999999.00');

See: data type formatting functions.

The manual is your friend.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top