Re: Hierarchical Queries - Mailing list pgsql-sql

From Christopher Kings-Lynne
Subject Re: Hierarchical Queries
Date
Msg-id 20020409210001.U25932-100000@houston.familyhealth.com.au
Whole thread Raw
In response to Hierarchical Queries  ("Gautham S. Rao" <gautam.rao@tatainfotech.com>)
List pgsql-sql
You can't - that syntax is not implemented in Postgres.

The only alternative is to try and write a stored procedure that uses a
FOR loop.  Remember that you can only return an open cursor from pl/pgsql,
not an actual recordset.

Chris

On Tue, 9 Apr 2002, Gautham S. Rao wrote:

> Hi,
>
> Can someone tell me how to write a hierarchical query in pgsql. What I
> want is something like the '...CONNECT BY PRIOR ... START WITH....'
> clause which is available in Oracle.
>
> Regards,
> Gautham.
>
>



pgsql-sql by date:

Previous
From: "Gautham S. Rao"
Date:
Subject: Hierarchical Queries
Next
From: Tom Lane
Date:
Subject: Re: Scadinavian characters in regular expressions