From: Roberto Mello <rmello@cc.usu.edu>
To: Alvar Freude <alvar.freude@merz-akademie.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using Array-Values in subselect
Date: Tue, 14 Nov 2000 14:15:11 -0700
Message-ID: <3A11AB5F.C3F2C467@cc.usu.edu> (raw)
References: <3A11A5EF.C74A40EE@merz-akademie.de>
Alvar Freude wrote:
>
> Hi,
>
> i want to create a linked structure of values. Each text has an id, an
> array of children ids and the value itself.
Looks like you want something similar to Oracle's CONNECT BY statement.
There are some solutions to that. At OpenACS we had to deal with that so
implemented something like what you described here.
However, the methods described by Joe Celko is his book "SQL For
Smarties" on chapters 28 and 29 (I think) are better and more robust. If
you search for "trees" and related topics at the openacs.org and
arsdigita.com's web/db web bulletin boards, you'll find several hits.
-Roberto Mello
P.S: I know this doesn't directly anwser your question, but points you
to where to find the answer for yourself.
--
Computer Science Utah State University
Space Dynamics Laboratory Web Developer
USU Free Software & GNU/Linux Club http://fslc.usu.edu
My home page - http://www.brasileiro.net/roberto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rmello@cc.usu.edu, alvar.freude@merz-akademie.de
Subject: Re: Using Array-Values in subselect
In-Reply-To: <3A11AB5F.C3F2C467@cc.usu.edu>
References: <3A11A5EF.C74A40EE@merz-akademie.de> <3A11AB5F.C3F2C467@cc.usu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox