📜  select * where id = 1,2,3 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:32.441000             🧑  作者: Mango

代码示例1
SELECT * FROM Table WHERE id IN (1,2,3,4,5) AND ColB = (SELECT ColB FROM Table WHERE id IN (1,2,3,4,5) ORDER BY FIELD(id,1,2,3,4,5) LIMIT 1)