Re: add some word in select

Поиск
Список
Период
Сортировка
От Stephen Powell
Тема Re: add some word in select
Дата
Msg-id ur7yuq3g9.fsf@privacy.net
обсуждение исходный текст
Ответ на add some word in select  ("Ricky" <ricky@babonmultimedia.com>)
Список 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

В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Miguel Juan"
Дата:
Сообщение: Re: get last oid
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: StatementHandle will be free automatically after you excute a