diff --git a/jOOQ-website/src/main/resources/manual-2.5.xml b/jOOQ-website/src/main/resources/manual-2.5.xml index ba5177237a..19c1cdf367 100644 --- a/jOOQ-website/src/main/resources/manual-2.5.xml +++ b/jOOQ-website/src/main/resources/manual-2.5.xml @@ -3227,7 +3227,50 @@ END
BETWEEN predicate - + +

Comparing a value against a bounded range

+

+ The BETWEEN predicate can be seen as syntactic sugar for a pair of . According to the SQL standard, the following two predicates are equivalent: +

+ + + += [B] AND [A] <= [C]]]> + + +

+ Note the inclusiveness of range boundaries in the definition of the BETWEEN predicate. Intuitively, this is supported in jOOQ as such: +

+ + + + + + +

BETWEEN SYMMETRIC

+

+ The SQL standard defines the SYMMETRIC keyword to be used along with BETWEEN to indicate that you do not care which bound of the range is larger than the other. A database system should simply swap range bounds, in case the first bound is greater than the second one. jOOQ supports this keyword as well, simulating it if necessary. +

+ + + + + + +

+ The simulation is done trivially: +

+ + + + + + +