Re: Hierarchical query's

From: Cláudia Morgado <claudia(dot)morgado(at)widesoft(dot)com(dot)br>
To: "Pavel Stehule" <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
Cc: <pgsql-general(at)postgresql(dot)org>, <cmmello(at)wide(dot)com(dot)br>
Subject: Re: Hierarchical query's
Date: 2003-10-24 10:26:38
Message-ID: 001801c39a19$4f4b4a20$15011aac@widesoft.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks very much!

We will go to do the tests.

Regards,
Carla Mello and Cláudia Morgado

----- Original Message -----
From: "Pavel Stehule" <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
To: "Cláudia Morgado" <claudia(dot)morgado(at)widesoft(dot)com(dot)br>
Cc: <pgsql-general(at)postgresql(dot)org>; <cmmello(at)wide(dot)com(dot)br>
Sent: Friday, October 24, 2003 3:32 AM
Subject: Re: [GENERAL] Hierarchical query's

> Hello
>
> PostgreSQL doesn't support h.q and I will not support this type of h.q.
> Supported syntax will be like db2 - ANSI SQL 2kx. But you can try hier
> patch - http://gppl.terminal.ru/readme.html.
>
> This is a patch which allows PgSQL to perform hierarchical queries like
> Oracle does.
>
> Regards
> Pavel Stehule
>
>
> On Thu, 23 Oct 2003, [iso-8859-1] Cláudia Morgado wrote:
>
> > Hello!
> >
> > Oracle has the option with the SQL CONECT BY statement to run through a
hierarchical database with a single SQl-statement:
> >
> > <!--SQL SELECT ms_id,ms_parent FROM messages CONNECT BY PRIOR ms_id =
ms_parent START WITH ms_id = 1 -->
> >
> > Result-set (example):
> >
> > ms_id parent_id 1 1.1 1 1.1.1 1.1 1.1.2 1.1 1.1.3 1.1 1.2 1 1.2.1 1.2
> >
> > etc
> >
> >
> > I need to do this in PostgreSql.
> >
> > This is possible in the Postgre?
> >
> >
> > regards,
> > Cláudia Morgado and Carla Mello
> >
> >
> >
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2003-10-24 11:13:03 Re: Simple SQL
Previous Message Paul Thomas 2003-10-24 09:09:05 Re: Pgsql 7.3.3 on redhat 7.2