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.
我有这样的说法...
SELECT * FROM FOO_TABLE WHERE ID = 1;
我想要的是能够提供多个 ID 而无需AND. 所以例如....
AND
SELECT * FROM FOO_TABLE WHERE ID = 1,2,3,4或(1,2,3,4)。
SELECT * FROM FOO_TABLE WHERE ID = 1,2,3,4
(1,2,3,4)
类似的东西。这可能吗?
从链接:
sqlite
SELECT id, . FROM additionalchunks WHERE id in (? ? ? ? ? .)
工作,并且有效地工作(使用索引):)