From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Jie Liang" <jie(at)stbernard(dot)com> |
Cc: | "Christian Kratzer" <ck(at)cksoft(dot)de>, pgsql-admin(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [SQL] \set |
Date: | 2004-05-12 23:05:37 |
Message-ID: | 29758.1084403137@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
"Jie Liang" <jie(at)stbernard(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Loeke | 2004-05-12 23:40:05 | the schema public |
Previous Message | Bjoern Metzdorf | 2004-05-12 22:40:58 | Quad processor options - summary |
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2004-05-12 23:40:06 | Re: [SQL] \set |
Previous Message | Jie Liang | 2004-05-12 21:59:38 | Re: [SQL] \set |