From: Tom Lane <tgl@sss.pgh.pa.us>
To: chester c young <chestercyoung@yahoo.com>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: quoted variables in pgsql
Date: Thu, 04 Jan 2007 22:26:08 -0500
Message-ID: <9089.1167967568@sss.pgh.pa.us> (raw)
In-Reply-To: <20070105032103.61634.qmail@web54310.mail.yahoo.com>
References: <20070105032103.61634.qmail@web54310.mail.yahoo.com>
chester c young <chestercyoung@yahoo.com> writes:
> cannot get those quotes around the value.
Use backslashes.
regression=# \set var '\'value\''
regression=# \echo :var
'value'
regards, tom lane
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: tgl@sss.pgh.pa.us, chestercyoung@yahoo.com
Subject: Re: quoted variables in pgsql
In-Reply-To: <9089.1167967568@sss.pgh.pa.us>
* 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