From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jie Liang <jie@stbernard.com>
Cc: Christian Kratzer <ck@cksoft.de>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] \set
Date: Wed, 12 May 2004 19:05:37 -0400
Message-ID: <29758.1084403137@sss.pgh.pa.us> (raw)
In-Reply-To: <E7E213858379814A9AE48CA6754F5ECB363373@mail01.stbernard.com>
References: <E7E213858379814A9AE48CA6754F5ECB363373@mail01.stbernard.com>
"Jie Liang" <jie@stbernard.com> writes:
> You will see AAA associate with 'whatever', it's an internal variable,
> but how could I use it in my SQL query?
regression=# \set AAA 'whatever'
regression=# select :AAA;
ERROR: column "whatever" does not exist
regression=# \set AAA '\'whatever\''
regression=# select :AAA;
?column?
----------
whatever
(1 row)
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, jie@stbernard.com, ck@cksoft.de, pgsql-admin@postgresql.org
Subject: Re: [SQL] \set
In-Reply-To: <29758.1084403137@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