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

來源: 2010-10-19 21:19:31 [舊帖] [給我悄悄話] 本文已被閱讀:

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.