pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Wegner <tomaten@t-online.de>
To: pgsql-sql@postgresql.org
Subject: SQL99 "with recursive" question
Date: Wed, 8 Sep 2004 01:38:37 +0200
Message-ID: <chlgps$ohb$1@news.hub.org> (raw)

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





Message-ID: <chlgps$ohb$1@news.hub.org>
Permalink:  ../chlgps$ohb$1@news.hub.org/
Also on:    postgresql.org/message-id/chlgps$ohb$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tomaten@t-online.de
  Subject: Re: SQL99 "with recursive" question
  In-Reply-To: <chlgps$ohb$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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