SQL99 "with recursive" question

From: "Thomas Wegner" <tomaten(at)t-online(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: SQL99 "with recursive" question
Date: 2004-09-07 23:38:37
Message-ID: chlgps$ohb$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2004-09-08 16:47:17 Re: Isnumeric function?
Previous Message Richard Huxton 2004-09-07 17:35:51 Re: Problem with returning setof record