Re: apostrophes and psql variables

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: apostrophes and psql variables
Дата
Msg-id 20060817131527.GA90172@winnie.fuhr.org
обсуждение исходный текст
Ответ на apostrophes and psql variables  ("Ilja Golshtein" <ilejn@yandex.ru>)
Список pgsql-general
On Thu, Aug 17, 2006 at 05:05:00PM +0400, Ilja Golshtein wrote:
> Is there any way to have psql variable in apostrophes?
>
> The idea is to do something like this
>
> \set var 'some value'
> insert into aaa values(:var)

test=> \set var '\'some value\''
test=> insert into aaa values (:var);
INSERT 0 1
test=> select * from aaa;
    val
------------
 some value
(1 row)

--
Michael Fuhr

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

Предыдущее
От: "Ilja Golshtein"
Дата:
Сообщение: apostrophes and psql variables
Следующее
От: "Dawid Kuroczko"
Дата:
Сообщение: Re: Best approach for a "gap-less" sequence