Re: Append text using Concat on an Update query

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Append text using Concat on an Update query
Дата
Msg-id 20070202043233.GD3882@fetter.org
обсуждение исходный текст
Ответ на Append text using Concat on an Update query  ("d" <datenisis@gmail.com>)
Список pgsql-general
On Thu, Feb 01, 2007 at 05:03:43PM -0800, d wrote:
> I'm trying to append new text on a field using the concat function.
>
> On the Set statement I use something like this:
>
> Set Field = Concat(Field,'ABC')

> And when I check the results 'ABC' wasn't appended to <Field>.  What
> should I do to make it append?

The SQL standard syntax for this is,

    Set Field = Field || 'ABC'

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

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

Предыдущее
От: Gene
Дата:
Сообщение: Re: PostgreSQL/FireBird
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: How to allow users to log on only from my application not from pgadmin