From: | Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com> |
---|---|
To: | satya pariki <spariki(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: why does this query does not work?????? |
Date: | 2001-11-19 21:42:55 |
Message-ID: | 20011119214255.26317.qmail@web20805.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
If you are using psql (command line client), you can
use:
\set variable_name variable_value
Then refer to the value by ":variable_name", i.e.
colon instead of ampersand.
"man psql" for more information.
--- satya pariki <spariki(at)yahoo(dot)com> wrote:
> are there any substitution variables in postgresql ?
>
> select * from EMP where EMPNO = &empnum;
>
> it is giving error. it is telling to type cast or
> use
> parenthesis.
>
> i will be grateful if u help me out of this.
>
> bye
> satya
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
majordomo(at)postgresql(dot)org
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | cnliou | 2001-11-20 03:50:03 | Re: Foreign Key Constraint Deletion Order |
Previous Message | Josh Berkus | 2001-11-19 21:16:56 | Re: why does this query does not work?????? |