Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

Next:From: Cliff NieuwenhuisDate: 2009-05-05 00:40:58
Subject: Re: hi
Previous:From: JORGE MALDONADODate: 2009-05-04 22:21:49
Subject: DATA TYPE CONVERTION

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group