Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Nested set model with large gaps and spreads in the numbering

Re: Nested set model with large gaps and spreads in the numbering

From: --CELKO-- <71062.1056_at_compuserve.com>
Date: 17 Sep 2002 06:39:05 -0700
Message-ID: <c0d87ec0.0209170539.7ce7653a@posting.google.com>


>> For some reason, what you are trying to do reminds me of the
process of
defragmenting a disk. <<

Good thought!

Richard Romley sent me a recursive UDF that computes the new left value for a node. It can be put into one statement then used in   UPDATE Tree

     SET lft = ShiftLeft(left),
         rgt = ShiftLeft(left) + (rgt-lft);

Very neat. I have to go out of town, but I will post it when I get back. Received on Tue Sep 17 2002 - 08:39:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US