【发布时间】:2019-10-02 23:44:05
【问题描述】:
我有一个包含复合字段集的查询(我不知道该怎么称呼它,请在 cmets 中输入正确的术语,以便我可以更新)
select
name,
`value`
from
docs
where
superceded_by is null
and doc_id = 1
and ( name , effective_on) in ( <----- composite field set
select
name,
max(effective_on)
from
docs
where
superceded_by is null
and doc_id = 1
and effective_on <= '2017-02-01'
group by
name )
我想将它转换为 JOOQ,但我似乎找不到它的等价物。我已经尝试过DSL.recordType,但它不支持in
这是上下文中的查询
【问题讨论】: