From: | "Dawid Kuroczko" <qnex42(at)gmail(dot)com> |
---|---|
To: | yogesh <yogesh(dot)arora(dot)daffodil(at)gmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org, pgsql-sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Postgres Array Traversing Problem |
Date: | 2007-10-05 08:55:44 |
Message-ID: | 758d5e7f0710050155j49730d3cr8d007a50b689c825@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
On 10/4/07, yogesh <yogesh(dot)arora(dot)daffodil(at)gmail(dot)com> wrote:
> Hello Friends,
>
> I have a Problem in Accessing Arrays in the Postgres.
> The Description of my problem is given
> here:-----------------------
> I have two array of numeric types. One That stores the IDs and Other
> Store their values at respective position.
> One Id could be in more than one Row's Array. Now i have to search
> the ID if it is present in the Array or not.
Any specific reason why you use arrays instead of normalizing your
schema?
> If present then at what position and to retrieve the corresponding
> ID and its Value....present in the other table......
> Is there any solution of it................If any Body knows please
> reply me as soon as possible.......
You should use pgsql-sql(at)postgresql(dot)org list for this type
of questions.
The safest route would be to use PL/pgSQL procedure which
iterates the array elements. It should be quite simple.
Play with this.
Regards,
Dawid
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2007-10-05 09:53:48 | Re: Executing external program from stored procedure |
Previous Message | Dawid Kuroczko | 2007-10-05 08:51:09 | Re: Executing external program from stored procedure |
From | Date | Subject | |
---|---|---|---|
Next Message | Judith | 2007-10-05 16:58:42 | pg_dump question |
Previous Message | A. Kretschmer | 2007-10-05 04:56:37 | Re: Rule Error |