From: Stephen Powell <stephen_powell@optusnet.com.au>
To: pgsql-odbc@postgresql.org
Subject: Re: add some word in select
Date: Wed, 24 Dec 2003 14:50:30 +1100
Message-ID: <ur7yuq3g9.fsf@privacy.net> (raw)
References: <018101c3c488$64f46340$0200a8c0@bandeng>
On Wed, 17 Dec 2003, ricky@babonmultimedia.com wrote:
> hello, i have sql "select name from user" then row result "John"
> come up. is it posible that the result produce "HELLO John" .
> there's word "Hello" before the name
Use the concatenation operator '||'.
select 'Hello ' || name from user where name = 'John';
You should probably download a copy of the user manual from
<http://www.postgresql.org/docs/; . It describes many of the functions
and operators that are available.
--
Stephen Powell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: stephen_powell@optusnet.com.au
Subject: Re: add some word in select
In-Reply-To: <ur7yuq3g9.fsf@privacy.net>
References: <018101c3c488$64f46340$0200a8c0@bandeng> <ur7yuq3g9.fsf@privacy.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox