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

DATA TYPE CONVERTION

From: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: DATA TYPE CONVERTION
Date: 2009-05-04 22:21:49
Message-ID: f03943a00905041521u22f173e1o1e6daf9222bbd32d@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
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

Responses

pgsql-novice by date

Next:From: Adam RuthDate: 2009-05-04 22:43:06
Subject: Re: DATA TYPE CONVERTION
Previous:From: Adam RuthDate: 2009-05-04 20:57:58
Subject: Re: hi

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