pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
add some word in select
4+ messages / 3 participants
[nested] [flat]

* add some word in select
@ 2003-12-17 10:27 Ricky <ricky@babonmultimedia.com>
  2003-12-24 03:50 ` Re: add some word in select Stephen Powell <stephen_powell@optusnet.com.au>
  0 siblings, 1 reply; 4+ messages in thread

From: Ricky @ 2003-12-17 10:27 UTC (permalink / raw)
  To: pgsql-odbc

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

thanks
RIcky




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: add some word in select
  2003-12-17 10:27 add some word in select Ricky <ricky@babonmultimedia.com>
@ 2003-12-24 03:50 ` Stephen Powell <stephen_powell@optusnet.com.au>
  0 siblings, 0 replies; 4+ messages in thread

From: Stephen Powell @ 2003-12-24 03:50 UTC (permalink / raw)
  To: pgsql-odbc

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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: add some word in select
@ 2003-12-18 10:44 Ricky <ricky@babonmultimedia.com>
  2003-12-18 15:12 ` Re: add some word in select Ropel <ropel@ropel.it>
  0 siblings, 1 reply; 4+ messages in thread

From: Ricky @ 2003-12-18 10:44 UTC (permalink / raw)
  To: pgsql-odbc

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 row name

thanks
RIcky



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: add some word in select
  2003-12-18 10:44 Re: add some word in select Ricky <ricky@babonmultimedia.com>
@ 2003-12-18 15:12 ` Ropel <ropel@ropel.it>
  0 siblings, 0 replies; 4+ messages in thread

From: Ropel @ 2003-12-18 15:12 UTC (permalink / raw)
  To: pgsql-odbc

If I've understood what you mean, the answer is:
"select 'Hello ' || name from user"

( || is  pipe character two times )

Bye

Roberto

----- Original Message -----
From: "Ricky" <ricky@babonmultimedia.com>
To: <pgsql-odbc@postgresql.org>
Sent: Thursday, December 18, 2003 11:44 AM
Subject: Re: [ODBC] add some word in select


> 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 row name
>
> thanks
> RIcky
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-12-24 03:50 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-17 10:27 add some word in select Ricky <ricky@babonmultimedia.com>
2003-12-24 03:50 ` Stephen Powell <stephen_powell@optusnet.com.au>
2003-12-18 10:44 Re: add some word in select Ricky <ricky@babonmultimedia.com>
2003-12-18 15:12 ` Ropel <ropel@ropel.it>

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