I can search a one dimensional array with SELECT value = ANY(array), but
how do I search two dimensional array for a particular row? ANY seems
to flatten out a two dimensional array.
[local]:playpen=> select 2 = any (ARRAY[[1,7],[4,2]]);
?column?
--
t
(1 row)
Time: 52.451 ms
[local
I've seen this asked in the archives, but there was never any answer.
Supposed I have this table:
create temp table tempa (ids int[]);
insert into tempa SELECT ARRAY[1 , 2, 3];
Now how do I get output from that? None of these work: (xunnest is my
version of unnest since I'm using 8.2.x)
se