我刚刚解决了这个问题。因为它不在文档中,需要您深入了解源代码,这似乎是解决方案的合适场所。
在ClojureQL中,如何创建如下查询:
SELECT * from foo where id in (1, 5, 7);发布于 2011-12-01 15:10:15
您需要使用谓词名称空间中的in谓词。
(require '[clojureql.core :as ql])
(require '[clojureql.predicates :as pred])
(ql/select (ql/table :foo) (ql/where (pred/in :id [1 5 7])))https://stackoverflow.com/questions/8343510
复制相似问题