From: Peter Eisentraut Date: Mon, 5 Feb 2001 19:21:45 +0000 (+0000) Subject: Document BETWEEN. X-Git-Tag: REL7_1~577 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=192ce19d361b1a6ee5a6d7198ddb38780ec0cab8;p=postgresql Document BETWEEN. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index cf4ac7f7ac..5e10ded524 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -185,6 +185,29 @@ 3). + + In addition to the comparison operators, the special + BETWEEN construct is available. + +a BETWEEN x AND y + + is equivalent to + +a >= x AND a <= y + + Similarly, + +a NOT BETWEEN x AND y + + is equivalent to + +a < x OR a > y + + There is no difference between the two respective forms apart from + the CPU cycles required to rewrite the first one + into the second one internally. + + To check whether a value is or is not NULL, use the constructs