From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | "Eric" <someone(at)somewhere(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Querying Hierarchical Data |
Date: | 2003-03-03 18:34:48 |
Message-ID: | 200303031034.48165.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Eric,
> How do I access hierarchical data under PostgreSQL?
> Does it have SQL command similar to Oracle's CONNECT BY?
Joe Conway wrote CONNECT BY as a function. It's in /contrib in your
PostgreSQL source for versions 7.3.0 and above, in /contrib/tablefunc I
think. There is also a different tree implementation in /contrib/ltree.
If that doesn't work for you, there are a number of different solutions to the
tree structure problem, and sample implementations of all of them on
PostgreSQL can be found through the web. Joe Celko covers three of them in
"SQL for Smarties".
--
Josh Berkus
Aglio Database Solutions
San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Chris | 2003-03-03 18:54:34 | LIMIT and SUBQUERIES |
Previous Message | Robert Treat | 2003-03-03 18:34:14 | Re: Querying Hierarchical Data |