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.
我需要获取多行文章,其中文章 ID 在下面的列表中。(在字符串列表中)
SELECT id, title FROM articles WHERE FIND_IN_SET(id, "1,2,3,4,5,9,25");
如何正确地做到这一点?
尝试:
SELECT id, title FROM articles WHERE FIND_IN_SET(id, '1,2,3,4,5,9,25') <> 0