From: Ray Madigan <ray@madigans.org>
To: Pgsql-Sql-Owner <pgsql-sql-owner@postgresql.org>
Subject: Linked List
Date: Tue, 25 Apr 2006 19:50:59 -0700
Message-ID: <IEELLOAPJFACBDBGELGHKEJPEDAA.ray@madigans.org> (raw)
I have a table that I created that implements a linked list. I am not an
expert SQL developer and was wondering if there are known ways to traverse
the linked lists. The table contains many linked lists based upon the head
of the list and I need to extract all of the nodes that make up a list. The
lists are simple with a item and a link to the history item so it goes kind
of like:
1, 0
3, 1
7, 3
9, 7
...
Any suggestions would be helpful, or I will have to implement the table
differently.
Thanks
Ray Madigan
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ray@madigans.org, pgsql-sql-owner@postgresql.org
Subject: Re: Linked List
In-Reply-To: <IEELLOAPJFACBDBGELGHKEJPEDAA.ray@madigans.org>
* 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