【发布时间】:2016-08-24 16:16:49
【问题描述】:
我有一个 Sqlite 表(具有 > 2500 万行),如下所示:
rowid overall text
----- ------- ----
1 5 'text1'
2 4 'text2'
3 2 'text3'
4 1 'text4'
5 3 'text5'
6 5 'text6'
... ... ...
overall 列的值范围为 1-5。现在我希望从该表中选择overall 和text,限制为100 万行,但要确保在我的选择中,500,000 行的总体> 3,而其他500,000 行的总体
【问题讨论】: