我有以下 MSSQL 查询,我无法找出 Korma 实体。请帮忙
select t.d as did from (
select dataid as d , count(dataid) as
cd from <table_name>
WHERE prid = <pid> group by dataid
) as t WHERE t.cd >1;
谢谢
SQL Korma 文档站点包含子选择 示例:
;; Subselects can be used as entities too!
(defentity subselect-example
(table (subselect users
(where {:active true}))
:activeUsers))