From 192ce19d361b1a6ee5a6d7198ddb38780ec0cab8 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 5 Feb 2001 19:21:45 +0000 Subject: [PATCH] Document BETWEEN. --- doc/src/sgml/func.sgml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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