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.
我最近在我们的测试集群中测试了 Oracle NoSQL 数据库中的一些 SQL 查询。我找不到名为 IN 运算符的 SQL 功能。它将大大简化我们的查询。例如,
SELECT * FROM Foo WHERE a IN (7, 6, 8)
相当于
SELECT * FROM Foo WHERE a = 7 OR a = 6 OR a = 8
您能否提一些建议?
是的,它存在于 NoSQL 数据库中
https://docs.oracle.com/en/database/other-databases/nosql-database/20.1/sqlreferencefornosql/operator.html
这是 IN 操作员文档的链接。