|The jOOQ User Manual : SQL building : QueryParts : SQL transformation : Pattern based transformation : AND to NOT IN||previous : next|
This is experimental functionality, and as such subject to change. Use at your own risk!
This documentation is for the unreleased development version of jOOQ. Click on the above version links to get this documentation for a supported version of jOOQ.
AND to NOT IN
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
Using Settings.transformPatternsAndNeToNotIn, the following transformations can be achieved:
-- With Settings.transformPatternsAndNeToNotIn active, this: SELECT * FROM tab WHERE x != a AND x != b AND x != c; -- ... is transformed into the equivalent expression: SELECT * FROM tab WHERE x NOT IN (a, b, c);
See also OR to IN