union with constant

123 views
Skip to first unread message

Vijay Ganesan

unread,
Apr 6, 2014, 3:20:57 AM4/6/14
to jooq...@googlegroups.com

What is the JOOQ way of doing a union with a constant e.g. how do you achieve the equivalent of:
select column from table union all select (2);
which selects column values from table and adds a row with value 2.

Thanks


Lukas Eder

unread,
Apr 7, 2014, 3:13:26 AM4/7/14
to jooq...@googlegroups.com
Hello Vijay,

Constants / bind values can be created using DSL.val() or DSL.inline(). See the relevant sections of the manual and Javadocs:

Lukas

--
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.

Reply all
Reply to author
Forward
0 new messages