i具有以下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文档网站包含 subselect 示例:
;; Subselects can be used as entities too!
(defentity subselect-example
(table (subselect users
(where {:active true}))
:activeUsers))