range

Range containment

Tests whether a value or entire range lies within another range.

Formal Syntax & Structure

sql syntaxsql
range @> element; range1 @> range2; range1 <@ range2

Working Example

Example Snippetsql
SELECT int4range(1,5) @> 5;
SQL Reference