|The jOOQ User Manual. Multiple Pages : SQL building : Conditional expressions : Condition building||previous : next|
TITLE = 'Animal Farm' TITLE != 'Animal Farm'
BOOK.TITLE.eq("Animal Farm") BOOK.TITLE.ne("Animal Farm")
There are a few types of conditions, that can be created statically from the DSL. These are:
- plain SQL conditions, that allow you to phrase your own SQL string conditional expression
- The EXISTS predicate, a standalone predicate that creates a conditional expression
Conditions can also be connected using boolean operators as will be discussed in a subsequent chapter.