Re: SOLVED: Emulating 'connect by prior' using stored proc - Mailing list pgsql-sql

From Randolf Richardson, DevNet SysOp 29
Subject Re: SOLVED: Emulating 'connect by prior' using stored proc
Date
Msg-id Xns9437E76B976E3rr8xca@200.46.204.72
Whole thread Raw
In response to Re: SOLVED: Emulating 'connect by prior' using stored proc  ("Merrall, Graeme" <gmerrall@team.aol7.com.au>)
List pgsql-sql
[sNip]
> It's the same in this case. The tree building stuff only ever looks down
> so the level returned in the query results will start at 1 no matter
> where you enter your tree.  In our case we could enter the tree at
> 'node' 100 and get the tree below that but the function will start at 1
> because we only interested in the data below not the entry point and not
> where in the tree we entered.
       Thanks.  That's excellent news!  =)

> As in the solution if you really want to start it at 5 then set that as
> the value of your second parameter.
       Interesting.  Although I don't have an immediate need for this, I'm 
sure it could be useful when storing the results of multiple queries of this 
nature in a temporary table.

-- 
Randolf Richardson - rr@8x.ca
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada
http://www.8x.ca/

This message originated from within a secure, reliable,
high-performance network ... a Novell NetWare network.



pgsql-sql by date:

Previous
From: Yasir Malik
Date:
Subject: Re: Arrays - a good idea?
Next
From: Terence Kearns
Date:
Subject: Re: Is there a more elegant way to write this query?...