我需要将 JOOQ 的记录结果集转换为表记录列表。有什么方法可以做到吗?
最佳答案
是的,您可以使用 Result.into(Table)
.一个例子:
Result<?> result = create.fetch(...);
Table<MyRecord> MY_TABLE = ...
Result<MyRecord> other = result.into(MY_TABLE);
作为Result
实现 List
,这应该可以满足您的需求
关于java - 如何在 JOOQ 中将 Record 转换为 Table Record?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14363384/