pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mephysto <mephystoonhell@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Help in accessing array
Date: Thu, 27 Sep 2012 03:12:21 -0700 (PDT)
Message-ID: <1348740741516-5725666.post@n5.nabble.com> (raw)

Hi to everyone,
I have a little problem to retrieve data from multidimensional array. For
example, if I have this array

foo[][] = {{5,3},{2,2}}

how can I retrieve one of two internal array (for example I would to
retrieve {5,3}?

I tried foo[1:1] but the result is {{5,3}}, not {5,3}.

Is a method to achieve my goal?

Thanks in advance.

Mephysto



--
View this message in context: http://postgresql.1045698.n5.nabble.com/Help-in-accessing-array-tp5725666.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.




view thread (2+ messages)  latest in thread

Message-ID: <1348740741516-5725666.post@n5.nabble.com>
Permalink:  ../1348740741516-5725666.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1348740741516-5725666.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mephystoonhell@gmail.com
  Subject: Re: Help in accessing array
  In-Reply-To: <1348740741516-5725666.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox