Re: simple SQL question

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: simple SQL question
Date: 2007-06-25 14:38:39
Message-ID: f5ok1g$1dg$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Joshua написа:
> I have a column with the following values (example below)
>
> 5673
> 4731
> 4462
> 5422
> 756
> 3060
>
> I want the column to display the numbers as follows:
>
> 56.73
> 47.31
> 44.62
> 54.22
> 7.56
> 30.60
>
> I have been playing around with string functions but cannot seem to
> figure out a quick solution. Does anyone have any suggestions?

Use "to_char(int, text)", details here -
http://www.postgresql.org/docs/current/static/functions-formatting.html

--
Milen A. Radev

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message manchicken 2007-06-25 15:05:29 Re: simple SQL question
Previous Message Rodrigo De León 2007-06-25 14:35:16 Re: simple SQL question