| From: | Angshu Kar <angshu96(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | programming in pgsql |
| Date: | 2006-01-07 22:27:19 |
| Message-ID: | df8328740601071427j7c8101d7w835899205ca4251d@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Doug McNaught | 2006-01-07 22:50:14 | Re: PGError: server closed the connection unexpectedly |
| Previous Message | Dave Steinberg | 2006-01-07 22:16:56 | Re: PGError: server closed the connection unexpectedly |