字段中有ID, ParentID
用sql语句 CONNECT BY PRIOR ID = ParentID START WITH ID = 1 把rowNum拿出来就有层级关系了!
具体实现,接下来都好说了~~
字段中有ID, ParentID
用sql语句 CONNECT BY PRIOR ID = ParentID START WITH ID = 1 把rowNum拿出来就有层级关系了!
具体实现,接下来都好说了~~
This entry was posted on Wednesday, February 3rd, 2010, 7:36 pm and is filed under PHP语言学习. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
Recent Comments