1

how is the following condition working? i have an postgres array and call a function with an array as paramter. As condition i want to check the following:

WHERE any(array[x,y]) = any(array[y,z])

Thus is minimum one element of the postgres array in the parameter array?

1 Answer 1

1

You can do this with the overlap operator:

WHERE array[x,y] && array[y,z]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.