apostrophes and psql variables

Поиск
Список
Период
Сортировка
От Ilja Golshtein
Тема apostrophes and psql variables
Дата
Msg-id 44E4697C.000002.12223@tide.yandex.ru
обсуждение исходный текст
Ответы Re: apostrophes and psql variables  (Michael Fuhr <mike@fuhr.org>)
Re: apostrophes and psql variables  (Q Beukes <pgsql-general@list.za.net>)
Список pgsql-general
Hello!

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)

after substisution it should as simple as
insert into aaa values('some value')

I've tried all reasonable quotings
I was able to make up but no any luck.

Thanks.

--
Best regards
Ilja Golshtein

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

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