programming in pgsql - Mailing list pgsql-general

From Angshu Kar
Subject programming in pgsql
Date
Msg-id df8328740601071427j7c8101d7w835899205ca4251d@mail.gmail.com
Whole thread Raw
Responses Re: programming in pgsql  (Richard Huxton <dev@archonet.com>)
List pgsql-general
Hi Pgsql,

Could anyone please advise whether the following program can be implemented using pgsql cursors/anythign else (or do we need some external scripts)?If yes, could you give please some function names etc?

select A from Bcluster where pvalue = 0.3
--say we get A=8
select B, A_child from CCluster where A = 8
--If we get a A_child (say we get A_child=7) from the above query we search that value in CCluster table again and store the Bs in some place as:
select B, A_child from CCluster where A = 7
--We do this till we get all Bs and no more A_childs
--We display and store the Bs for further usage

Thanks,
AK

pgsql-general by date:

Previous
From: Dave Steinberg
Date:
Subject: Re: PGError: server closed the connection unexpectedly
Next
From: Marcos José Setim
Date:
Subject: Performance Low Using the Prepare and Execute