回複:請教數據庫專家: 如何做樹結構的數據庫?

來源: novtim2 2010-10-19 21:19:31 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (204 bytes)

not an expert, but try to learn

one table, with column as ID int not null; and parent ID int ;

if a row has parent ID not null, then go find it's parent; otherwise it's a root node.

所有跟帖: 

Couple options you can take -internuts- 給 internuts 發送悄悄話 internuts 的博客首頁 (964 bytes) () 10/19/2010 postreply 23:17:15

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”