multidimensional arrays

Поиск
Список
Период
Сортировка
Искать
От
Ketema
Тема
multidimensional arrays
Дата
в 21:14:41
Msg-id
1178064875.009615.131640@q75g2000hsh.googlegroups.com
Список
Дерево обсуждения
multidimensional arrays Ketema <ketema@gmail.com>
Re: multidimensional arrays Tom Lane <tgl@sss.pgh.pa.us>
Re: multidimensional arrays Ketema <ketema@gmail.com>
Is it possible to access a subarray of a multi dimensional array as a
whole?

example:

'{
	{
		{1,2,3}, {11,22,33}, {111,222,333}
	},
	{
		{4,5,6}, {44,55,66}, {444,555,666}
	},
	{
		{7,8,9}, {77,88,99}, {777,888,999}
	}
}' --pretend this is _intarray

if wanted to do:
 select case when 1 = any(_intarray[1][1]) then true else false end;

this should be equivalent to:
 select case when 1 in (1,2,3) then true else false end;

the first statement produces an error about target of any must be an
array.  If I try to cast to integer[] i get an error stating that
integer cant be cast to integer[]

Thanks!

В списке pgsql-general по дате отправления
От: Paul Lambert
Дата:
Сообщение: Re: PG Books
От: Rich Shepard
Дата:
FAQ