【发布时间】:2013-11-07 02:09:23
【问题描述】:
我必须使用jOOQ 中的函数调用来执行Select 查询怎么办?我必须编写这种类型的 jOOQ Query。
Select Cola,col2,Col3, f_feeAmount(arg) col4 from SomeTable
如何为此编写 jOOQ 代码?
SelectQuery<Record> selectQueryFee = transRefundFee.selectQuery();
selectQueryFee.addSelect(AccountBillFee.ACCOUNT_BILL_FEE.ACCOUNT_BILL_FEE_RSN,AccountBill.ACCOUNT_BILL.BILL_NUMBER,AccountBill.ACCOUNT_BILL.PAYMENT_OPTION);
selectQueryFee.addSelect(f_feeAmount(arg));
但f_feeAmount 无法被 jOOQ 识别,因为它是用户定义的函数。
【问题讨论】:
-
你试过找教程吗?
-
是的,我知道如何编写简单的查询,但功能看起来有些问题
-
看我编辑了我的问题