Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在努力学习安卓。我编写了一个查询来获取除第一个选定行之外的详细信息。但它不工作?我这边有什么问题吗?
String selectQuery = "SELECT * FROM " + TABLE_ITEMS +" WHERE "+ ITEMFOLDER_ID +"=?"+"AND id NOT IN (SELECT id from itemTable WHERE idFolder =? LIMIT 0,1)";
ORDER BY
... (SELECT min(id) FROM itemTable WHERE idFolder=?)
还有一些进一步的评论:
TABLE_ITEMS
ITEMFOLDER_ID
IN
... AND id != (SELECT ...)