create.select().from(view).where(whereClause, whereBindings);
whereClause = id1 = ? and id2 in ?
whereBindings[0] = 21LwhereBinding[1] = "(1,2)"
select *from Xwhere (id1 = 21 and id2 in '(1,2)')
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
String whereClause = "id1 = {0} and id2 in ({1})";
QueryPart whereParts[] = {
DSL.val(21),
DSL.list(DSL.val(1), DSL.val(2))
};
create.select().from(view).where(whereClause, whereParts);
See also: https://www.jooq.org/doc/latest/manual/sql-building/plain-sql-templating
I hope this helps, Lukas
--