quoted variables in pgsql

Поиск
Список
Период
Сортировка
От chester c young
Тема quoted variables in pgsql
Дата
Msg-id 20070105032103.61634.qmail@web54310.mail.yahoo.com
обсуждение исходный текст
Ответы Re: quoted variables in pgsql
Список pgsql-sql
cannot figure this out

# \set var 'value'
# select * from some_table where some_col = :var;
ERROR: column value does not exist

cannot get those quotes around the value.  tried:
# \set var ''value''
# \set var ''''value''''

in each case:
# \echo :var
value

thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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

Предыдущее
От: Dave Steinberg
Дата:
Сообщение: Re: [SQL NOTIFY Help] sending NOTIFY to the external program
Следующее
От: Tom Lane
Дата:
Сообщение: Re: quoted variables in pgsql