Search Postgresql Archives

Re: [REPOST] plpgsql : looping over multidimensional array : getting NULL for subdimension

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 2, 2010 at 9:03 AM, Samba <saasira@xxxxxxxxx> wrote:
> Thank you  Merlin for your answer,
>
>        I tried that and is working as you said.
>        But when I do
>                    other_array=some_array[1:2];
>        I'm getting the entire
> '{{samba,sarath,sreenivas},{samba,mukhesh,pavan}}';
>
>        not just the second subarray, i.e. '{{samba,mukhesh,pavan}}'.
>
>        Is there any way I can get only the corresponding slice of the array?

sure...some_array[2:2], etc

merlin

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux