SQL99 "with recursive" question

Поиск
Список
Период
Сортировка
От Thomas Wegner
Тема SQL99 "with recursive" question
Дата
Msg-id chlgps$ohb$1@news.hub.org
обсуждение исходный текст
Список pgsql-sql
Hello, i think i am to stupid to use the "with recursive" SQL!

I have a table:

create table tree
( id_tree integer, parent_id integer
...
);

In PostgreSQL i use the great connectby() function and in Oracle i simple
use

select * from tree
start with id_tree = 0
connect by parent_id=prior id_tree

But how must i use this with "with recursive" function?
Every example i found uses two tables. I have only one!

Please help me! I need this to use my oracle tables with
the same speed in sybase 9.0.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://trillian.wegner24.de/cabriometer




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

Предыдущее
От: "James M Doherty"
Дата:
Сообщение: HOW TO HANDLE ZEROS IN DATE FIELD?
Следующее
От: the inquirer
Дата:
Сообщение: PL/pgSQL Function Problem