Re: [GENERAL] Parameter for query

2013-07-16 Thread Luca Ferrari
On Wed, Jul 17, 2013 at 6:25 AM, Robert James wrote: > Is there any way to set a variable or parameter for a query? > > I have a long query where a certain variable needs to be easy to > change. I'd like to do something like: > > threshold = 10.3 > > SELECT... WHERE x > $threshold... AND y * 1.3

Re: [GENERAL] Parameter for query

2013-07-16 Thread Michael Paquier
On Wed, Jul 17, 2013 at 1:25 PM, Robert James wrote: > Is there any way to set a variable or parameter for a query? > > I have a long query where a certain variable needs to be easy to > change. I'd like to do something like: > > threshold = 10.3 > > SELECT... WHERE x > $threshold... AND y * 1.3

[GENERAL] Parameter for query

2013-07-16 Thread Robert James
Is there any way to set a variable or parameter for a query? I have a long query where a certain variable needs to be easy to change. I'd like to do something like: threshold = 10.3 SELECT... WHERE x > $threshold... AND y * 1.3 > $threshold... Currently, I need to do this in a scripting langua