quoted variables in pgsql - Mailing list pgsql-sql

From chester c young
Subject quoted variables in pgsql
Date
Msg-id 20070105032103.61634.qmail@web54310.mail.yahoo.com
Whole thread Raw
Responses Re: quoted variables in pgsql
List 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 by date:

Previous
From: Dave Steinberg
Date:
Subject: Re: [SQL NOTIFY Help] sending NOTIFY to the external program
Next
From: Tom Lane
Date:
Subject: Re: quoted variables in pgsql