From: drfrog@smartt.com
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: using a self referencing table
Date: Tue, 18 Jul 2000 09:05:49 -0700
Message-ID: <3974805D.6C33895E@smartt.com> (raw)
i have a table with this structure
name (varchar)|category id (int4)|parent category id (int4)|leaf node
(bool)
im trying to make a perl script that should tree the info
parent cat
subcat
subcat2
subcat2
subcat
subcat2
...
but im having troubles wrapping my head around this
im using the Pg modules to access postgres
if anyone has any suggestions please lemme know thanks!
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: drfrog@smartt.com
Subject: Re: using a self referencing table
In-Reply-To: <3974805D.6C33895E@smartt.com>
References: <3974805D.6C33895E@smartt.com>
* 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