9.20. 範圍函式及運算子

See Section 8.17 for an overview of range types.

Table 9.53 shows the specialized operators available for range types. In addition to those, the usual comparison operators shown in Table 9.1 are available for range types. The comparison operators order first by the range lower bounds, and only if those are equal do they compare the upper bounds. This does not usually result in a useful overall ordering, but the operators are provided to allow unique indexes to be constructed on ranges.

Table 9.53. Range Operators

The left-of/right-of/adjacent operators always return false when an empty range is involved; that is, an empty range is not considered to be either before or after any other range.

Table 9.54 shows the functions available for use with range types.

Table 9.54. Range Functions

The lower_inc, upper_inc, lower_inf, and upper_inf functions all return false for an empty range.

Last updated