sqlite 3.5.9问题

时间:2011-06-12 12:01:32

标签: android sqlite

我有查询

SELECT c.*, sum(cnt.count) AS Questions FROM chapters c 
JOIN( SELECT q.chapterid, count(q.chapterid) AS count, t.LinkChapter 
FROM questions q 
JOIN( SELECT DISTINCT questionid, LinkChapter FROM questionstests 
WHERE testid = '"+ testID +"' )t ON t.questionid = q.questionid 
GROUP BY q.chapterid,t.LinkChapter )cnt 
ON cnt.chapterid = c.chapterid OR cnt.LinkChapter = c.ChapterID 
GROUP BY c.ChapterID ORDER BY SortBy

完全适用于sqlite 3.6.22但在sqlite 3.5.9上抛出'无法构建迭代器'异常。任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案