apostrophes and psql variables

Поиск
Список
Период
Сортировка
От Ilja Golshtein
Тема apostrophes and psql variables
Дата
Msg-id 44E4697C.000002.12223@tide.yandex.ru
обсуждение исходный текст
Ответы Re: apostrophes and psql variables
Re: apostrophes and psql variables
Список 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 по дате отправления: