query variables - Mailing list pgsql-general

From j0rd1 adame
Subject query variables
Date
Msg-id 200501271929.26847.jordi@jordi.net
Whole thread Raw
Responses Re: query variables
List pgsql-general
Hi:
Is there any way to save the result of a query in a variable, so that i could
use that value in another query??

something like set VARIABLENAME = select count(1) from table;
and then
select 56778/VARIABLENAME as final_result;

thanks
--
Jordi Adame V
jordi (.a.) jordi.net
http://www.lawaloca.com

Attachment

pgsql-general by date:

Previous
From: "DBTools Software"
Date:
Subject: Re: convert mdb files to pg?
Next
From: "Jonel Rienton"
Date:
Subject: Re: changing sort_mem on the fly?