Re: why does this query does not work?????? - Mailing list pgsql-sql

From Jeff Eckermann
Subject Re: why does this query does not work??????
Date
Msg-id 20011119214255.26317.qmail@web20805.mail.yahoo.com
Whole thread Raw
In response to why does this query does not work??????  (satya pariki <spariki@yahoo.com>)
List 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@yahoo.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@postgresql.org


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: why does this query does not work??????
Next
From: "Clayton Cottingham aka drfrog"
Date:
Subject: Re: [OT?] permissions