Re: DATA TYPE CONVERTION

From: Adam Ruth <adamruth(at)mac(dot)com>
To: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: DATA TYPE CONVERTION
Date: 2009-05-04 22:43:06
Message-ID: 0E2D7A8B-0086-4A95-B2C6-EEF760DC89E9@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Cliff Nieuwenhuis 2009-05-05 00:40:58 Re: hi
Previous Message JORGE MALDONADO 2009-05-04 22:21:49 DATA TYPE CONVERTION