Re: varchar for loops possible?

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: varchar for loops possible?
Дата
Msg-id 4FBAB9EE.5090802@iol.ie
обсуждение исходный текст
Ответ на varchar for loops possible?  ("J.V." <jvsrvcs@gmail.com>)
Список pgsql-general
On 18/05/2012 21:30, J.V. wrote:
> update table set varcharid = ''' || tmp_var || '''

Others have answered your question, but there's a problem here too; you
don't need the quotes. This statement should be just:

  update table set varcharid = tmp_var;

...assuming that the types match, of course.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: how to for loop with distinct values?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: FATAL: lock file "postmaster.pid" already exists