JOOQ Converti en utilisant GBK
DSL.field("convert({0} USING gbk)", tb.NAME);
Innocent Ibex
DSL.field("convert({0} USING gbk)", tb.NAME);
Result<Record3<String, String, Integer>> result =
ctx.select(
AUTHOR.FIRSTNAME,
AUTHOR.LASTNAME,
DSL.count(BOOK_AUTHOR.BOOKID).as("bookCount"))
.from(AUTHOR)
.leftJoin(BOOK_AUTHOR).on(AUTHOR.ID.eq(BOOK_AUTHOR.AUTHORID))
.where(AUTHOR.LASTNAME.like("Jan%en"))
.groupBy(AUTHOR.FIRSTNAME, AUTHOR.LASTNAME)
.fetch();