Advertisement
Guest User

cojack

a guest
Apr 19th, 2010
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.83 KB | None | 0 0
  1. ltree=> SELECT * FROM tree ORDER BY "categoryPath";
  2.  idCategory |         categoryPath        
  3. ------------+------------------------------
  4.          27 | 1.Top
  5.          28 | 1.Top.1.Science
  6.          31 | 1.Top.1.Science.1.Physics
  7.          32 | 1.Top.1.Science.2.Chemistry
  8.          33 | 1.Top.1.Science.3.Biology
  9.          34 | 1.Top.1.Science.4.History
  10.          40 | 1.Top.1.Science.5.Archeology
  11.          29 | 1.Top.2.Hobby
  12.          35 | 1.Top.2.Hobby.1.Fishing
  13.          36 | 1.Top.2.Hobby.2.Football
  14.          41 | 1.Top.2.Hobby.3.Swimming
  15.          45 | 1.Top.2.Hobby.4.Climbing
  16.          30 | 1.Top.3.Colors
  17.          37 | 1.Top.3.Colors.1.Black
  18.          38 | 1.Top.3.Colors.2.Red
  19.          39 | 1.Top.3.Colors.3.Blue
  20.          42 | 1.Top.3.Colors.4.Gray
  21.          43 | 1.Top.3.Colors.5.Purple
  22.          44 | 1.Top.3.Colors.6.Brown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement