Re: How to store a linked list in a RDBMS

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: How to store a linked list in a RDBMS
Дата
Msg-id x7lmmw4g2y.fsf@onceler.kciLink.com
обсуждение исходный текст
Ответ на How to store a linked list in a RDBMS  (Srikanth Rao <srirao_us@yahoo.com>)
Список 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/


В списке pgsql-sql по дате отправления:

Предыдущее
От: Martín Marqués
Дата:
Сообщение: Re: ORDER BY what?
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Inheritance - Multiple membership