DSL.insertInto(table, fieldsToInsert).select(select)).onDuplicateKeyUpdate(updateMap)Now I can use onDuplicateKeyUpdate only after values(). Any way to acomplish it with jOOQ?
--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Unlike query(String, Object...)
, the SQL passed to this method should not contain any bind variables. Instead, you can pass QueryPart
objects to the method which will be rendered at indexed locations of your SQL string as such:
// The following query
query("select {0}, {1} from {2}", val(1), inline("test"), name("DUAL"));
// Will render this SQL on an Oracle database with RenderNameStyle.QUOTED:
select ?, 'test' from "DUAL"