我有下面的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;谢谢
发布于 2017-02-21 01:26:28
SQL Korma文档站点包含子选择 sample
;; Subselects can be used as entities too!
(defentity subselect-example
(table (subselect users
(where {:active true}))
:activeUsers))https://stackoverflow.com/questions/42344325
复制相似问题