Tree structure

Поиск
Список
Период
Сортировка
От Kaare Rasmussen
Тема Tree structure
Дата
Msg-id 36D655E9.5F2A00DC@webline.dk
обсуждение исходный текст
Ответы Re: [GENERAL] Tree structure  (Peter T Mount <peter@retep.org.uk>)
Список pgsql-general
I can't figure this one out. I need a tree structure like this

Number  Pointer
1            0
2            1
3            1
4            2
5            0
6            1
7            5

This should somehow show up like this
Number
1
2
4
3
6
5
7

The whole excercise is because I'd like to show a tree structure:

1
- 2
- - 4
- 3
- 6
5
- 7

Is this possible with PostgreSQL?


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

Предыдущее
От: "K.T."
Дата:
Сообщение: Re: [GENERAL] Q's: discussion group; pgsql authorization
Следующее
От: Michael Davis
Дата:
Сообщение: RE: [GENERAL] Tree structure