Re: SOLVED: Emulating 'connect by prior' using stored proc

Поиск
Список
Период
Сортировка
От Randolf Richardson, DevNet SysOp 29
Тема Re: SOLVED: Emulating 'connect by prior' using stored proc
Дата
Msg-id Xns9437E76B976E3rr8xca@200.46.204.72
обсуждение исходный текст
Ответ на Re: SOLVED: Emulating 'connect by prior' using stored proc  ("Merrall, Graeme" <gmerrall@team.aol7.com.au>)
Список 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 по дате отправления:

Предыдущее
От: Yasir Malik
Дата:
Сообщение: Re: Arrays - a good idea?
Следующее
От: Terence Kearns
Дата:
Сообщение: Re: Is there a more elegant way to write this query?...