pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to store a linked list in a RDBMS
2+ messages / 2 participants
[nested] [flat]
* How to store a linked list in a RDBMS
@ 2001-06-13 02:08 Srikanth Rao <srirao_us@yahoo.com>
2001-06-13 14:20 ` Re: How to store a linked list in a RDBMS Vivek Khera <khera@kcilink.com>
0 siblings, 1 reply; 2+ messages in thread
From: Srikanth Rao @ 2001-06-13 02:08 UTC (permalink / raw)
To: pgsql-sql
I have a linked list representing a tree. How do I
store it in the database? Does PGSQL give us any
special procedures to deal with such structures?
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to store a linked list in a RDBMS
2001-06-13 02:08 How to store a linked list in a RDBMS Srikanth Rao <srirao_us@yahoo.com>
@ 2001-06-13 14:20 ` Vivek Khera <khera@kcilink.com>
0 siblings, 0 replies; 2+ messages in thread
From: Vivek Khera @ 2001-06-13 14:20 UTC (permalink / raw)
To: pgsql-sql
>>>>> "SR" == Srikanth Rao <srirao_us@yahoo.com> writes:
SR> I have a linked list representing a tree. How do I
SR> store it in the database? Does PGSQL give us any
SR> special procedures to deal with such structures?
Pick up a data structures book and read up on how to implement a
linked list inside an array. This maps directly to an SQL table with
a sequential primary key.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-06-13 14:20 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-13 02:08 How to store a linked list in a RDBMS Srikanth Rao <srirao_us@yahoo.com>
2001-06-13 14:20 ` Vivek Khera <khera@kcilink.com>
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