I have a table with an integer array column. I want to select all rows where contains at least one int value from a given list.
E.g.
SELECT * FROM table where (111) = ANY (columarray)
returns all rows where columnarray contains 111.
Now I want select all rows where columnarray contains 111 or/and 222. Something like
SELECT * FROM table where (111,222) = ANY (columnarray)
that doesnt work. It returns an error
Error: ERROR: operator does not exist: record = integer Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 45 SQLState: 42883 ErrorCode: 0