add some word in select

Поиск
Список
Период
Сортировка
Искать

add some word in select

От:
"Ricky" <ricky@babonmultimedia.com>
Дата:
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

Re: add some word in select

От:
Stephen Powell <stephen_powell@optusnet.com.au>
Дата:
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
 . It describes many of the functions
and operators that are available.

-- 
Stephen Powell
FAQ