Parameter for query
От
Robert James
Тема
Parameter for query
Дата
Msg-id
CAGYyBgi=jsYughrTRzA0F_Jj+fWmgD3f_AGOazqHoQZYg8g+wA@mail.gmail.com
Список
Дерево обсуждения
Parameter for query Robert James <srobertjames@gmail.com>
Re: Parameter for query Michael Paquier <michael.paquier@gmail.com>
Re: Parameter for query Luca Ferrari <fluca1978@infinito.it>
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 language. Is there a straightforward way to do this directly in Postgres?
В списке pgsql-general по дате отправления