【发布时间】:2011-11-05 12:09:41
【问题描述】:
我有超过 3 个视图。我的数据库如下所示:
Category:
CatID | CatTitle
----------------
1 | XYZ
2 | Sample
Content:
ItemID | ItemCatID | ItemText | ItemText2 | ItemText3 | ItemText4
-----------------------------------------------------------------
1 | 1 | Test | Bla | Sample | MoreContent
2 | 1 | Test2 | BlaBla | Sample2 | Other Content
3 | 2 | Test3 | BlaBla2 | Sample3 | Other Content2
我想要一个视图,其中第一页类别、第二页列表 (ItemText)、第三页详细信息。
我不知道如何去做。如果我使用 JOIN,我应该在三元组中定义“sqlite3_stmt *compiledStatement”吗?
我认为可以用'For',“get parent,child”(就像java中的光标)来完成?
欢迎任何建议。
【问题讨论】: