Hele将MSSQL查询转换为Korma实体



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))

相关内容

  • 没有找到相关文章

最新更新