0
我们可以在JOOQ中使用SelfJoin吗?如何在Jooq中使用SelfJoin?
Select Count(1) CountPayments
From PaymentDetail APD1, PaymentDetail APD2, Payment AP
where APD1.PaymentNumber =123
and APD1.BillNumber > 0
and APD2.BillNumber = APD1.BillNumber
and APD2.PaymentNumber <> APD1.PaymentNumber
and AP.PaymentNumber = APD2.PaymentNumber
如果是的话我们如何在上面的查询中使用它?