【发布时间】:2011-10-07 22:19:58
【问题描述】:
想象下面的公式:
Comment ID 1
|
|--- Comment ID 2 (reply to ID 1)
|
|--- Comment ID 3 (reply to ID 2)
|
|--- Comment ID 4 (reply to ID 2)
|
|--- Comment ID 5 (reply to ID 4)
如何将以上内容存储到 SQL 中,以便稍后检索和列出?
我在 PHP/SQL 方面相对较好,但这种情况正在递归地杀死我。有什么想法吗?
【问题讨论】: