Re: Quotes and spaces

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Quotes and spaces
Дата
Msg-id web-142849@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Quotes and spaces  (Oleg Lebedev <olebedev@waterford.org>)
Список pgsql-sql
Oleg,

I'm assuming that this is just a hypothetical example, as the below is
far from the fastest way to get something as simple as a name.

> BEGIN
>     query := ''SELECT first_name || '''' '''' || last_name FROM
> user'';
>     EXECUTE query;
> ...
> END;
> ...

I'm pretty sure your quotes are correct.  However, I believe "query" is
a reserved word.  Try using a different variable name.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco

Вложения

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

Предыдущее
От: Oleg Lebedev
Дата:
Сообщение: Quotes and spaces
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Quotes and spaces