From: | Sibtay Abbas <sibtay(at)gmail(dot)com> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: working with multidimensional arrays in plpgsql |
Date: | 2005-01-26 11:06:47 |
Message-ID: | bd6a355105012603061b743717@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
thank you very much for your reply
I did as you specified and it worked fine
thankz :)
On Wed, 26 Jan 2005 09:29:53 +0000, Richard Huxton <dev(at)archonet(dot)com> wrote:
> Sibtay Abbas wrote:
> > hello everyone
> >
> > i am having problem with multidimensional arrays in plpgsql following
> > is the source code of the function which i am trying to run
>
>
> > DECLARE
> > x INTEGER[10][10];
>
> > x[3][1] := '20'; ------i have even tried x[3][1] = 20
>
> > As you might have observed here, the actual problem is
> > how to do assignment to multidimensional array locations using the
> > subscript operater.
>
> Actually, the problem is that the array "x" has been initialised to
> NULL. Therefore, you can't set individual values. Try a line like:
> x := '{}';
>
> --
> Richard Huxton
> Archonet Ltd
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Ossareh | 2005-01-26 13:02:19 | Re: SQL Query Performance tips |
Previous Message | Leeuw van der, Tim | 2005-01-26 10:36:35 | Re: [SQL] OFFSET impact on Performance??? |