I am trying to get rows where a column of type int[] contains a value. currently i am using Any() operator but not working for me.
select * from products where 4 = ANY(product_type) AND (3,5) @> ANY(category_id);
given error:
Syntax error: 7 ERROR: syntax error at or near "," LINE 1: ...mages.product_id where 4 = ANY(product_type) AND 3,5 @> ANY(category_id)
'(3,5)'::int[]