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 far where itemno = '100701'
这给了我 1 条记录。
我想要的是获取多个带有 itemno 变量的记录:
select * from far where itemno = '100701', '100702', '100703......
我如何实现这一目标?
select * from far where itemno in ('100701', '100702', '100703, ...)
简单的
select * from far where itemno IN ('100701', '100702', '100703.....)