You can use contained by operator:
(array1 <@ array2 and array1 @> array2)
More Related Contents:
- Can PostgreSQL index array columns?
- Unnest multiple arrays in parallel
- Return rows matching elements of input array in plpgsql function
- Can PostgreSQL have a uniqueness constraint on array elements?
- Loop over array dimension in plpgsql
- Unnest array by one level
- Using jsonb_set() for updating specific jsonb array value
- Iterating over integer[] in PL/pgSQL
- jsonb vs jsonb[] for multiple addresses for a customer
- Please help me access nested array
- remove an index number from array
- Passing arrays as parameters in bash
- Creating an Array from a Range in VBA
- Element-wise array replication in Matlab
- What is the ideal growth rate for a dynamically allocated array?
- Two-dimensional array in Swift
- How to iterate over array of objects in Handlebars?
- 1D Number Array Clustering
- How to initialize two-dimensional arrays in Fortran
- Array of Matrices in MATLAB
- How can I convert a buffer of a slice of bytes (&[u8]) to an integer?
- How to filter an array of objects based on values in an inner array with jq?
- Is there a Perl shortcut to count the number of matches in a string?
- How to split a string by new lines in Swift
- Pipe complete array-objects instead of array items one at a time?
- Maximum single-sell profit
- Swift: What’s the best way to pair up elements of an Array
- How do I iterate through each element in an n-dimensional matrix in MATLAB?
- Convert PostgreSQL array to PHP array
- Dynamically Dimensioning A VBA Array?