Re: DATA TYPE CONVERTION - Mailing list pgsql-novice

From Adam Ruth
Subject Re: DATA TYPE CONVERTION
Date
Msg-id 0E2D7A8B-0086-4A95-B2C6-EEF760DC89E9@mac.com
Whole thread Raw
In response to DATA TYPE CONVERTION  (JORGE MALDONADO <jorgemal1960@gmail.com>)
List pgsql-novice
You could do:

SELECT quantity::text FROM tblOrders


On 05/05/2009, at 8:21 AM, JORGE MALDONADO wrote:

> Is it possible to convert a numeric value to string within a SELECT
> query statement?
> For example, let's say that I have a table with a numeric field
> named "quantity". A normal SELECT would be "SELECT quantity FROM
> tblOrders". What if I want the value returned by the SELECT clause
> to be of type string instead of decimal?
>
> Regards,
> Jorge Maldonado


pgsql-novice by date:

Previous
From: JORGE MALDONADO
Date:
Subject: DATA TYPE CONVERTION
Next
From: Cliff Nieuwenhuis
Date:
Subject: Re: hi