Sure, use the &&
array-overlaps operator:
SELECT ARRAY[1,2] && ARRAY[1,3,4,7];
Related Contents:
- Postgres NOT in array
- How to turn a json array into rows in postgres
- Get Nth element of an array that returns from “string_to_array()” function
- Appending (pushing) and removing from a JSON array in PostgreSQL 9.5+
- Loop over array dimension in plpgsql
- How to apply a function to each element of an array column in Postgres?
- Iterating over integer[] in PL/pgSQL
- Inserting array values
- Remove array values in pgSQL
- Postgres integer arrays as parameters?
- in postgres select, return a column subquery as an array?
- Cannot INSERT: ERROR: array value must start with “{” or dimension information
- Adding value to Postgres integer array
- How to iterate a loop with index and element in Swift
- How to initialize an array in Kotlin with values?
- Print array elements on separate lines in Bash?
- Read lines from a file into a Bash array [duplicate]
- How to split a delimited string in Ruby and convert it to an array?
- Declare a constant array
- Swift Dictionary: Get values as array
- Change values while iterating
- Declare and Initialize String Array in VBA
- How can I store the “find” command results as an array in Bash
- Removing duplicate values from a PowerShell array
- What Haskell representation is recommended for 2D, unboxed pixel arrays with millions of pixels?
- How do I make a exact duplicate copy of an array?
- mongodb find by multiple array items
- TypeScript and array reduce function
- How to unload a ByteArray using Actionscript 3?
- How to rearrange item of an array to new position in Swift?
- Find the Smallest Integer Not in a List
- Changing The value of struct in an array
- Iterate over two arrays simultaneously
- Equals method for data class in Kotlin
- Most idiomatic way to select elements from an array in Golang?
- Creating an Array from a Range in VBA
- MongoDB – Query on the last element of an array?
- Printing array in Scala
- How to find if an array contains a string [duplicate]
- Typescript – Sort strings descending
- Shell Script: correct way to declare an empty array
- In Swift, what’s the cleanest way to get the last two items in an Array?
- How to merge all integer arrays from all records into single array in postgres
- TWIG how to get the first item from the array
- Creating an extension to filter nils from an Array in Swift
- How can I convert a buffer of a slice of bytes (&[u8]) to an integer?
- How to extract a particular element from an array in BASH?
- STArray documentation for newbies and State/ST related questions
- Convert an array into an index hash in Ruby
- When should I use indexed arrays of OpenGL vertices?