Question

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.

Was it helpful?

Solution

to_char.

SELECT to_char(1231.123, '9999999999.00');

See: data type formatting functions.

The manual is your friend.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top