How to write sql script to Sort?
ROBOT 2001-02-28 11:08:00 Here a table:
NodeID ParentNodeID DATA
-1 -1
0 -1
1 4
2 1
3 -1
4 0
5 1
I want use SQL script to get a sorted temp table,let childNode always be behind of parentNode
AS:
NodeID ParentNodeID DATA
-1 -1
0 -1
3 -1
4 0
1 4
2 1
5 1