0

我有以下 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;

谢谢

4

1 回答 1

0

SQL Korma 文档站点包含子选择 示例

;; Subselects can be used as entities too!
(defentity subselect-example
  (table (subselect users
            (where {:active true}))
         :activeUsers))
于 2017-02-20T17:26:27.957 回答