From: chester c young <chestercyoung@yahoo.com>
To: sql pgsql <pgsql-sql@postgresql.org>
Subject: quoted variables in pgsql
Date: Thu, 4 Jan 2007 19:21:03 -0800 (PST)
Message-ID: <20070105032103.61634.qmail@web54310.mail.yahoo.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: chestercyoung@yahoo.com
Subject: Re: quoted variables in pgsql
In-Reply-To: <20070105032103.61634.qmail@web54310.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox