2011-07-27 43 views
0

林選擇(高數則params的)試圖選擇一個表中的列有相似多凡在SQLite的

select * from table where id= (2,5,7,32,21,76......); 

的查詢where子句是無效的,但反射我想要的東西。是否有一個短的符號來表示這樣做,否則我就用

select * from table where id= 2 or id=5 or id =7 .......; 

在此先感謝

回答

0
select * from tables where id in (2, 5, 7, 32, ...) 
+0

謝謝您的回答嗯即時有點失落與Adnroid內sqlite的任何想法如何實現它在SQLiteDatabase類的更新方法? – Starterrr