0
我有一個SQLite表(具有> 25000000行),看起來像這樣:如何選擇具有條件的行數限制的Sqlite表中的行?
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行總數大於<。3.我該怎麼做?
謝謝!這幫了很多。 –